SA-MP Forums Archive
Small errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Small errors (/showthread.php?tid=443254)



Small errors - NoahF - 11.06.2013

Код:
Desktop\SA-MP Server\gamemodes\VGRP.pwn(8245) : error 001: expected token: ";", but found ")"
Desktop\SA-MP Server\gamemodes\VGRP.pwn(8245) : error 029: invalid expression, assumed zero
Desktop\SA-MP Server\gamemodes\VGRP.pwn(8246) : error 029: invalid expression, assumed zero
LINES:

Код:
(!strcmp(name,"Gregory_Kouk", true)) || (!strcmp(name,"Noah_Fallon", true)))    EstaAutorizado[playerid] = true;//Cambiar el nick por el suyo
     else



Re: Small errors - rpg894 - 11.06.2013

if (!strcmp(name,"Gregory_Kouk", true) || !strcmp(name,"Noah_Fallon", true))


Re: Small errors - IceBilizard - 11.06.2013

pawn Код:
(!strcmp(name,"Gregory_Kouk", true)) || (!strcmp(name,"Noah_Fallon", true))    EstaAutorizado[playerid] = true;//Cambiar el nick por el suyo



Re: Small errors - rpg894 - 11.06.2013

Quote:
Originally Posted by IceBilizard
Посмотреть сообщение
pawn Код:
(!strcmp(name,"Gregory_Kouk", true)) || (!strcmp(name,"Noah_Fallon", true))    EstaAutorizado[playerid] = true;//Cambiar el nick por el suyo
You just copied my solution. Bad boy.


Re: Small errors - IceBilizard - 11.06.2013

excuse me your code is

pawn Код:
if (!strcmp(name,"Gregory_Kouk", true) || !strcmp(name,"Noah_Fallon", true))
mine is

pawn Код:
(!strcmp(name,"Gregory_Kouk", true)) || (!strcmp(name,"Noah_Fallon", true))    EstaAutorizado[playerid] = true;//Cambiar el nick por el suyo

see the difference


Re: Small errors - NoahF - 11.06.2013

Quote:
Originally Posted by rpg894
Посмотреть сообщение
if (!strcmp(name,"Gregory_Kouk", true) || !strcmp(name,"Noah_Fallon", true))
This fixed it, thanks and enjoy your +REP.