Help PLS - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help PLS (
/showthread.php?tid=91353)
Help PLS -
luuksa - 14.08.2009
Код:
if(strcmp(cmd,"/fbio",true)==0)
{
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2||PlayerInfo[playerid][pAdmin] == 1338)//E vidite ove brojeve == 5 to su vam brojevi organizacije te brojeve promjenite u organizaciju zelite po zelji.
{
MoveObject(fbivrata, 283.495544, -1542.871216, 20.681459,4.000);// Kordinate otvorene kapijeCreateObject(980, 283.495544, -1542.871216, 20.681459, 0.0000, 0.0000, 326.2500);//otprta
SendClientMessage(playerid, COLOR_GREEN, "Otvarate vrata FBI-a.");
}
else
{
SendClientMessage(playerid, COLOR_RED, "Nisi Clan FBI-a.");
}
return 1;
}
if(strcmp(cmd,"/fbic",true)==0)
{
if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pAdmin] == 1338)// isto tako i ovdje promjenite brojeve
{
MoveObject(fbivrata, 283.000092, -1542.625732, 26.421503,4.000 ); //kordinate zatvorene kapije
SendClientMessage(playerid, COLOR_GREEN, "Zatvarate vrata FBI-a.");
} //that's 8499 line
else
{
SendClientMessage(playerid, COLOR_RED, "Nisi Clan FBI-a.");
}
return 1;
}
Re: Help PLS -
XtremeChio - 14.08.2009
warning 217 means that there are too many spaces.
Which means
This is an example where I would get 2 217 warnings.
Код:
if(strcmp(cmdtext, "/kill", true) == 0)
{
SetPlayerHealth(playerid,0.0);
return 1;
}
You see the SetPlayerHealth and return1; are too right. So how to fix ? All the lines that have this warning; delete the spaces. Compare to other commands you have near. Which means 4 warnings gone.
I'd fix it like this
Код:
if(strcmp(cmdtext, "/kill", true) == 0)
{
SetPlayerHealth(playerid,0.0);
return 1;
}
For the line 8449. I don't know which one is it but seeing from the error, try to replace '}' with the ';'
Re: Help PLS -
luuksa - 14.08.2009
I'd fix it.. tnx anyway
Re: Help PLS -
XtremeChio - 14.08.2009
I helped because you asked for it.. Nvm