Need help! - 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: Need help! (
/showthread.php?tid=350102)
Need help! -
ossukoss - 11.06.2012
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;
}
Re: Need help! -
Private200 - 11.06.2012
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!
Re: Need help! -
ossukoss - 11.06.2012
Fixed
Re: Need help! -
Stereotype - 11.06.2012
and use [PAWN] tags
Re: Need help! -
Private200 - 11.06.2012
Quote:
Originally Posted by ossukoss
Fixed
|
If mine reply helped , rep+ me