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

Wysłany: 2012-11-29, 19:57


Prezio







Wiek: 30
Na forum: 4935 dni
Posty: 9



Respekt: 50

Ostrzeżeń: 100%
Witam.

Jak zrobi? komend? dla admina, kt?ry jest zalogowany na RCON'a aby m?g? dawa? dan? ilo?? score dla jakiego? gracza ?

Pozdrawiam i za pomoc rozdaj? :arrow: :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-11-29, 20:12


Adasek000







Wiek: 32
Na forum: 5698 dni
Posty: 63
Nick w MP: Shaggy_Manley

Piwa: 16

Respekt: 20,9

Kod:


CMD:score(playerid, cmdtext[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0x00FFFFAA,"Nie jeste? administratorem RCON!");
{
new gracz;
if(sscanf(cmdtext,"u",gracz,liczba)){
SendClientMessage(playerid, 0x00FFFFAA, "U?yj : /score ID Liczba");
return 1;
}
new str[128], liczba[40];
format(str, sizeof(str), "JAKI? TAM TEKST");
SetPlayerScore(gracz, liczba);


return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-11-29, 20:29


Prezio







Wiek: 30
Na forum: 4935 dni
Posty: 9



Respekt: 50

Ostrzeżeń: 100%
Kod:


C:\Users\Prezes\Desktop\Serwer Truck\inter.pwn(12954) : error 017: undefined symbol "liczba"
C:\Users\Prezes\Desktop\Serwer Truck\inter.pwn(12960) : error 035: argument type mismatch (argument 2)
C:\Users\Prezes\Desktop\Serwer Truck\inter.pwn(12963) : error 030: compound statement not closed at the end of file (started at line 12951)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.



Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-11-29, 20:31


Adasek000







Wiek: 32
Na forum: 5698 dni
Posty: 63
Nick w MP: Shaggy_Manley

Piwa: 16

Respekt: 20,9

Kod:

CMD:score(playerid, cmdtext[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0x00FFFFAA,"Nie jeste? administratorem RCON!");
{
new gracz, liczba;
if(sscanf(cmdtext,"u",gracz,liczba)){
SendClientMessage(playerid, 0x00FFFFAA, "U?yj : /score ID Liczba");
return 1;
}
new str[128];
format(str, sizeof(str), "JAKI? TAM TEKST");
SetPlayerScore(gracz, liczba);


return 1;
}


Spr?buj teraz.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-11-29, 20:34


Prezio







Wiek: 30
Na forum: 4935 dni
Posty: 9



Respekt: 50

Ostrzeżeń: 100%
Kod:


C:\Users\Prezes\Desktop\Serwer Truck\inter.pwn(12963) : error 030: compound statement not closed at the end of file (started at line 12951)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


linijka :

Kod:


if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0x00FFFFAA,"Nie jeste? administratorem RCON!");


[ Dodano: 2012-11-29, 20:43 ]
Naprawi?em ;) Piwka lec? ;)

Temat do zamkni?cia ;)

Postaw piwo autorowi tego posta
 

 
Tagi: komenda :: dawanie :: score
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 na dawanie score 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