What Problem - 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: What Problem (
/showthread.php?tid=500665)
What Problem -
boysockpr0123 - 14.03.2014
I have some error with lines
Код:
CMD:buildrace(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] <= 4) return SendClientMessage(playerid, RED, "<!> Ban khong du kha nang su dung lenh nay!");
if(BuildRace != 0) return SendClientMessage(playerid, RED, "<!> There's already someone building a race!");
if(RaceBusy == 0x01) return SendClientMessage(playerid, RED, "<!> Wait first till race ends!");
if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, RED, "<!>Hay ra khoi xe truoc!");
BuildRace = playerid+1;
ShowDialog2(playerid, 599);
return 1;
}
i have downloaded and copied zcmd into include but it still have this problem , anything help ?
Re: What Problem -
BroZeus - 14.03.2014
what are errors?
Re : What Problem -
Golimad - 14.03.2014
what are the errors ? use instead of [code] next time btw
Re: What Problem -
Stanford - 14.03.2014
I will play "guess the errors":
it might be this line:
am I right? if so replace these "0x01" with "1" ( I don't know how did you use RaceBusy exactly so Im guessing )
Re : Re: What Problem -
Golimad - 14.03.2014
Quote:
Originally Posted by Stanford
I will play "guess the errors":
it might be this line: am I right? if so replace these "0x01" with "1" ( I don't know how did you use RaceBusy exactly so Im guessing )
|
That line is perfectly fine;
He maybe didn't define it.
Re: What Problem -
boysockpr0123 - 14.03.2014
it's have ERROR with
Quote:
C:\Users\Administrator\Desktop\DM.Stune.Zombie\GGN FS\GGNFS\GGNFS\gamemodes\NFS.pwn(14557) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\DM.Stune.Zombie\GGN FS\GGNFS\GGNFS\gamemodes\NFS.pwn(14557) : error 017: undefined symbol "cmd_buildrace"
C:\Users\Administrator\Desktop\DM.Stune.Zombie\GGN FS\GGNFS\GGNFS\gamemodes\NFS.pwn(14557) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\DM.Stune.Zombie\GGN FS\GGNFS\GGNFS\gamemodes\NFS.pwn(14557) : fatal error 107: too many error messages on one line
|
Re: What Problem -
Ruben_Alonso - 14.03.2014
Did you.
At the top of your script?
Make sure you download the lastest include.
https://sampforum.blast.hk/showthread.php?tid=91354
Re: What Problem -
boysockpr0123 - 14.03.2014
Yeah , i have it in my #include
Re: What Problem -
Ardenshy - 14.03.2014
Where you put this command?
Re: What Problem -
boysockpr0123 - 14.03.2014
I put it alone