What's wrong with this line? - 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's wrong with this line? (
/showthread.php?tid=522852)
What's wrong with this line? -
NoahF - 29.06.2014
Код:
new string1[200], string2[200], string3[200], CopName[24], CriminalName[24], CriminalID, jReason[128];
if(gTeam !== PD) return SendClientMessage(playerid, COLOR_RED, "You are not a police officer!");
ERRORS:
Код:
C:\Users\x\Desktop\x\gamemodes\x.pwn(911) : error 029: invalid expression, assumed zero
C:\Users\x\Desktop\x\gamemodes\x.pwn(911) : warning 215: expression has no effect
C:\Users\x\Desktop\x\gamemodes\x.pwn(911) : error 001: expected token: ";", but found ")"
C:\Users\x\Desktop\x\gamemodes\x.pwn(911) : error 029: invalid expression, assumed zero
C:\Users\x\Desktop\x\gamemodes\x.pwn(911) : fatal error 107: too many error messages on one line
Thanks for the help!
Re: What's wrong with this line? -
GeekSiMo - 29.06.2014
Show More Lines !!
Re: What's wrong with this line? -
NoahF - 29.06.2014
Код:
new string1[200], string2[200], string3[200], CopName[24], CriminalName[24], CriminalID, jReason[128];
if(gTeam !== PD) return SendClientMessage(playerid, COLOR_RED, "You are not a police officer!");
if(sscanf(params, "us[128]", CriminalID, jReason)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /arrest [ID] [REASON]");
{
if(GetPlayerWantedLevel(CriminalID) => 1)
Re: What's wrong with this line? -
PrivatioBoni - 29.06.2014
!== should be !=
Re: What's wrong with this line? -
NoahF - 29.06.2014
Thanks.