Need help!
#1

lslrp.pwn(19436) : error 047: array sizes do not match, or destination array is too small



if(strcmp(cmd, "/trunk", true) == 0) // By Night-life
{
if(IsPlayerConnected(playerid))
{
new x_nr[255];
x_nr=strtok(cmdtext, idx);
if(!strlen(x_nr))
{
SendClientMessage(playerid, COLOR_WHITE, "HINT: /trunk [name]");
SendClientMessage(playerid, COLOR_WHITE, "Available Tasks: check, placegun, takegun, putarmor, takearmor");
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3)
{
SendClientMessage(playerid, COLOR_WHITE, "You can /trunk frisk as a cop");
}
return 1;
}
Reply
#2

The error 047 is not the line where error happend . It can be the same error with another num . But anyway i think the problem is at the array size and if in every gamemode there is a : Care if there is warning with the array sizes . You have to put the array size 0 .

Quote:

// Include all define-statements and custom-type declarations and the arrays which use them

Reinstall gamemode and don't change anything at the array , or another problem can be the pawno . i Got problems from pawno and with the same gamemode (without changing anything) another pawno didn't got errors . If you get any warning , dismiss it , warnings are not problem!
Reply
#3

Fixed
Reply
#4

and use [PAWN] tags
Reply
#5

Quote:
Originally Posted by ossukoss
Посмотреть сообщение
Fixed
If mine reply helped , rep+ me
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)