Problem With Admin Script.
#1

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.
Reply
#2

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
Reply
#3

a_samp is already included, i must define player_regged? #define PLAYER_REGGED?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)