KAPSu Posted June 21, 2013 Report Share Posted June 21, 2013 [pawn]C:\Users\Andrei\Desktop\GunGme.pwn(86) : error 029: invalid expression, assumed zeroC:\Users\Andrei\Desktop\GunGme.pwn(86) : warning 215: expression has no effectC:\Users\Andrei\Desktop\GunGme.pwn(86) : error 001: expected token: ";", but found "]"C:\Users\Andrei\Desktop\GunGme.pwn(86) : error 029: invalid expression, assumed zeroC:\Users\Andrei\Desktop\GunGme.pwn(86) : fatal error 107: too many error messages on one line[/pawn]linia 86: if(PlayerInfo[playerid][pAdmin] >= 4) Cel din urma va fi cel dintâi. Link to comment Share on other sites More sharing options...
MAC1 Posted June 21, 2013 Report Share Posted June 21, 2013 Pune si cateva linii de langa...sau mai bine pune toata comanda. Link to comment Share on other sites More sharing options...
KAPSu Posted June 21, 2013 Author Report Share Posted June 21, 2013 Comanda /gungame:[pawn]if (strcmp(cmdtext, "/gungame", true)==0) { if(gungame == 1) { if(PlayerInfo[playerid][pAdmin] >= 4) { GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(0xFFD700AA,"{99FF00}=========================== GunGame Event ==========================="); SendClientMessageToAll(0xFFD700AA,"{CCCCCC}Eventul {99FF00}GunGame {CCCCCC}este pe cale sa inceapa!"); SendClientMessageToAll(0xFFD700AA, "{CCCCCC}Acesta v-a incepe in {99FF00}30 de secunde{CCCCCC}, grabeste-te sa te inscri -> [/participa]"); SendClientMessageToAll(0xFFD700AA,"{99FF00}=========================== GunGame Event ==========================="); SetTimer("StartGunGame", 30000, 0); gungame = 0; } else { SendClientMessage(playerid, COLOR_WHITE, "Un event GunGame e deja pornit , nu mai poti porni altul!"); } }[/pawn] Cel din urma va fi cel dintâi. Link to comment Share on other sites More sharing options...
MAC1 Posted June 21, 2013 Report Share Posted June 21, 2013 Incearca acum: if (strcmp(cmdtext, "/gungame", true) == 0) { if(gungame == 1) { if(PlayerInfo[playerid][pAdmin] >= 4) { GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(0xFFD700AA, "{99FF00}=========================== GunGame Event ==========================="); SendClientMessageToAll(0xFFD700AA, "{CCCCCC}Eventul {99FF00}GunGame {CCCCCC}este pe cale sa inceapa!"); SendClientMessageToAll(0xFFD700AA, "{CCCCCC}Acesta v-a incepe in {99FF00}30 de secunde{CCCCCC}, grabeste-te sa te inscri -> [/participa]"); SendClientMessageToAll(0xFFD700AA, "{99FF00}=========================== GunGame Event ==========================="); SetTimer("StartGunGame", 30000, 0); gungame = 0; } else { SendClientMessage(playerid, 0xFFFFFFAA, "Tu nu ai acces la aceasta comanda!"); } } else { SendClientMessage(playerid, COLOR_WHITE, "Un event GunGame e deja pornit , nu mai poti porni altul!"); } return 1; } Link to comment Share on other sites More sharing options...
KAPSu Posted June 21, 2013 Author Report Share Posted June 21, 2013 Aceleasi erori ! Cel din urma va fi cel dintâi. Link to comment Share on other sites More sharing options...
MAC1 Posted June 21, 2013 Report Share Posted June 21, 2013 Ti-am aratat prin TV cum se face, dar mai aveai 6 erori pentru ca erau niste comenzi in afara callback-ului "OnPlayerCommandText(params)" si nu stiu de ce ai inchis conexiunea.Tu ai vrut sa folosesti pAdmin intr-un filterscript, el fiind definit in gamemode, ceea ce nu se poate. Asa ca ti-am inlocuit cu PVars, ca sa fie compatibil cu ambele scripturi.Ca sa rezolvi si erorile alea 6, trebuie sa pui comenzile alea de jos in callback-ul "OnPlayerCommandText(params)". Link to comment Share on other sites More sharing options...
Question
KAPSu
[pawn]C:\Users\Andrei\Desktop\GunGme.pwn(86) : error 029: invalid expression, assumed zero
C:\Users\Andrei\Desktop\GunGme.pwn(86) : warning 215: expression has no effect
C:\Users\Andrei\Desktop\GunGme.pwn(86) : error 001: expected token: ";", but found "]"
C:\Users\Andrei\Desktop\GunGme.pwn(86) : error 029: invalid expression, assumed zero
C:\Users\Andrei\Desktop\GunGme.pwn(86) : fatal error 107: too many error messages on one line[/pawn]
linia 86: if(PlayerInfo[playerid][pAdmin] >= 4)
Cel din urma va fi cel dintâi.
Link to comment
Share on other sites
5 answers to this question
Recommended Posts