[help with Freeze / unfreeze command] - 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 with Freeze / unfreeze command] (
/showthread.php?tid=381670)
[help with Freeze / unfreeze command] -
basse - 30.09.2012
[SOLVED]
Problem is Solved
Re: [help with Freeze / unfreeze command] -
Joshman543 - 30.09.2012
Where your a_samp include is, did you execute the function: new reason
??
Re: [help with Freeze / unfreeze command] -
basse - 30.09.2012
how do you mean?
Re: [help with Freeze / unfreeze command] -
RedFusion - 30.09.2012
reason has to be a string. use
and replace the z with an s in your sscanf line..
pawn Код:
if(sscanf(params, "us", ID, reason))
Re: [help with Freeze / unfreeze command] -
Joshman543 - 30.09.2012
You had the function messed up, every new function has to be a string like ^ he said.
+ Rep
Re: [help with Freeze / unfreeze command] -
basse - 30.09.2012
pawn Код:
new string[200]; <--- they are?
Re: [help with Freeze / unfreeze command] -
newbienoob - 30.09.2012
Here
pawn Код:
new reason[128];
if(sscanf(params, "us[128]", ID, reason)) return SendClientMessage(playerid, COLOR_RED, "Usage: /freeze (ID) (reason)");