Error - help. - 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: Error - help. (
/showthread.php?tid=100655)
Error - help. -
TheFailFactor - 05.10.2009
Код:
if(strcmp(cmd, "/elite", true) == 0)
{
if (IsPlayerAdmin(playerid))
{
new playa = ReturnUser(tmp);
SetPlayerRank(playa,1);
SendClientMessage(playa,NICESKY,"[ELITE FORCE] You are now a member of the elite forces.");
return 1;
}
}
What the crap is wrong again?
error 017: undefined symbol "tmp"
Re: Error - help. -
member - 05.10.2009
pawn Код:
if(!strcmp(cmdtext,"/elite",true,6))
{
if (IsPlayerAdmin(playerid))
{
if(!strlen(cmdtext[6])) return SendClientMessage(playerid, 0xFFFFFF00, "USAGE: /elite [playerid]");
new playa = strval(cmdtext[10]);
if(!IsPlayerConnected(playa)) SendClientMessage(playerid, 0xFFFFFF00, "That player isnt connected");
SetPlayerRank(playa,1);
SendClientMessage(playa,NICESKY,"[ELITE FORCE] You are now a member of the elite forces.");
return 1;
}
}
Re: Error - help. -
TheFailFactor - 05.10.2009
Yeah eh thanks, but I still get a error on the line with "new playa ="
error 035: argument type mismatch (argument 1)
Re: Error - help. -
member - 05.10.2009
Ok i edited my first post, (i dont know how the ReturnUser function works).
Re: Error - help. -
TheFailFactor - 06.10.2009
Up.. If I write the command, the whole server crashes.