SA-MP Forums Archive
[HELP Me] - 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: [HELP Me] (/showthread.php?tid=344931)



[HELP Me] - Kazuo - 23.05.2012

Код:
error 017: undefined symbol "params"
warning 225: unreachable code
And the line error's

pawn Код:
if(newkeys == KEY_WALK)
{
return dcmd_robstore(playerid,params);
return 1;
}



Re: [HELP Me] - [ABK]Antonio - 23.05.2012

there's no params in that callback...Also, you're already returning you don't need to return twice


Re: [HELP Me] - Kazuo - 23.05.2012

and what's the solution, so that it can use the command robstore key_walk,, i will give +1 rep


Re: [HELP Me] - Vince - 23.05.2012

Just use "" (empty string) as params. Or whatever the player would've typed as parameters. And as said, remove return 1.

Oh, and I usually don't reply to topics with a non-descriptive title (see my sig) but I just happened to stumble upon this one.