Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2013-09-14, 20:23


Vince71







Wiek: 35
Na forum: 4700 dni
Posty: 5



Respekt: 50

Siemka mam problem z komend? nie wiem jak zrobi? ?eby m?g? wpisa? j? szef oraz vice szef. Znaczy zrobi?em tak ?e mo?e szef j? wpisa? ale nie wiem jak zrobi? ?eby jeszcze m?g? wpisa? j? vice szef.

Kod:

CMD:wyplatas(playerid, params[])
{
new targetPlayer, score;
new string2[64];
new string3[64];
if(strcmp(PlayerName(playerid),"Assassin"))return SendClientMessage(playerid, Eror, "Nie jeste? szefem frakcji/firmy.");
if (sscanf (params, "id", targetPlayer, score))
return SendClientMessage(playerid, Informacyjny, "Wpisz: /wyplatap [id] [suma]");
if (score < 1 || score > 400)
return SendClientMessage(playerid, Eror, "Nie mo?esz da? mniej ni? 1 % a wi?cej ni? 10000$.");
format(string2, sizeof(string2), "Przela?e? %d $ pieni?dzy na konto gracza %s.", score, PlayerName(playerid));
SendClientMessage(playerid, CZielony, string2);
format(string3, sizeof(string3), "Szef %s Przela? na twoje konto %d $ pieni?dzy wyp?aty.", PlayerName(playerid), score);
SendClientMessage(playerid, CZielony, string3);
return SetPlayerScore(targetPlayer, score), 1;
}

Za pomoc oferuj? zimne :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-14, 20:37


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

Vince71, Sprawd? tak ;)
Kod:

CMD:wyplatas(playerid, params[])
{
new targetPlayer, score;
new string2[64];
new string3[64];
if(strcmp(PlayerName(playerid),"Assassin") || strcmp(PlayerName(playerid),"Nick_ViceSzefa"))return SendClientMessage(playerid, Eror, "Aby u?y? tej komendy musisz by? szefem lub vice-szefem !");
if (sscanf (params, "id", targetPlayer, score))
return SendClientMessage(playerid, Informacyjny, "Wpisz: /wyplatap [id] [suma]");
if (score < 1 || score > 400)
return SendClientMessage(playerid, Eror, "Nie mo?esz da? mniej ni? 1 % a wi?cej ni? 10000$.");
format(string2, sizeof(string2), "Przela?e? %d $ pieni?dzy na konto gracza %s.", score, PlayerName(playerid));
SendClientMessage(playerid, CZielony, string2);
format(string3, sizeof(string3), "Szef %s Przela? na twoje konto %d $ pieni?dzy wyp?aty.", PlayerName(playerid), score);
SendClientMessage(playerid, CZielony, string3);
return SetPlayerScore(targetPlayer, score), 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-14, 20:44


Vince71







Wiek: 35
Na forum: 4700 dni
Posty: 5



Respekt: 50

Teraz jest tak ?e jak wpisuj? komend? to mi pisz?:

Aby u?y? tej komendy musisz by? szefem lub vice-szefem !

Cho? mam nick szefa

Nie rozumiem ;c

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-14, 20:51


Sillence







Wiek: 26
Na forum: 5157 dni
Posty: 1514
Nick w MP: Sillence

Piwa: 1517

Respekt: 416,3
Respekt: 416,3

Vince71, Hmm.. To zobacz wypr?buj ten spos?b:
Kod:

CMD:wyplatas(playerid, params[])
{
new targetPlayer, score;
new string2[64];
new string3[64];
if(strcmp(PlayerName(playerid), "Assassin", false) != 0 && strcmp(PlayerName(playerid), "Vice szef", false) != 0)return SendClientMessage(playerid, Eror, "Aby u?y? tej komendy musisz by? szefem lub vice-szefem !");
if (sscanf (params, "id", targetPlayer, score))
return SendClientMessage(playerid, Informacyjny, "Wpisz: /wyplatap [id] [suma]");
if (score < 1 || score > 400)
return SendClientMessage(playerid, Eror, "Nie mo?esz da? mniej ni? 1 % a wi?cej ni? 10000$.");
format(string2, sizeof(string2), "Przela?e? %d $ pieni?dzy na konto gracza %s.", score, PlayerName(playerid));
SendClientMessage(playerid, CZielony, string2);
format(string3, sizeof(string3), "Szef %s Przela? na twoje konto %d $ pieni?dzy wyp?aty.", PlayerName(playerid), score);
SendClientMessage(playerid, CZielony, string3);
return SetPlayerScore(targetPlayer, score), 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-09-14, 20:58


Vince71







Wiek: 35
Na forum: 4700 dni
Posty: 5



Respekt: 50

Ok to dzia?a dzi?kuje za pomoc. Mo?esz do mnie napisa? na gg: cut chcia?bym z tob? popisa? o czym? ;)

Ostatnio zmieniony przez ToxiC. 2013-09-15, 09:33, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Tagi: komenda :: /wyplatas
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » [INNE] Komenda /wyplatas Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku