Problem With Admin Script. - 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: Problem With Admin Script. (
/showthread.php?tid=234037)
Problem With Admin Script. -
Manuwar - 02.03.2011
Hi all, i have create an admin script with
this tutorial.
but when i compile the fs i have this 5 errors.
\AdminScript.pwn(202) : error 010: invalid function or declaration
\AdminScript.pwn(284) : error 010: invalid function or declaration
\AdminScript.pwn(285) : error 010: invalid function or declaration
\AdminScript.pwn(331) : error 047: array sizes do not match, or destination array is too small
\AdminScript.pwn(334) : error 047: array sizes do not match, or destination array is too small
Line 202 :
Код:
if(gPlayerInfo[playerid][PLAYER_REGGED] == 0)
Line 284 :
Код:
if(gPlayerInfo[playerid][PLAYER_REGGED] == 1)
Line 285 :
Код:
return SendClientMessage(playerid, COLOUR_ORANGE, "ERROR: You have already registered!");
Line 331 :
Код:
tmp = strtok(params, index);
Line 334 :
Код:
tmp2 = strtok(params, index);
I'm a Beginner (Noob) Scripter with pawno xD
Anyone can help me?
Thanks.
Re: Problem With Admin Script. -
YungGee - 03.03.2011
Line 334/331:
Make the tmp and tmp2 stings bigger if there [128] make them [256]
Line 285:
if its not registering the SendClientMessage function u dont have the a_samp included.. add: #include <a_samp> at the very top
Line 284/202:
Im guessing you dont have PLAYER_REGGED defined or the samp include is needed for if statements(Im not sure)
Hope this helps
Re: Problem With Admin Script. -
Manuwar - 03.03.2011
a_samp is already included, i must define player_regged? #define PLAYER_REGGED?