SA-MP Forums Archive
1 Error - 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: 1 Error (/showthread.php?tid=424984)



1 Error - Nivniv2 - 24.03.2013

Code:
C:\Users\user\Desktop\LRP\gamemodes\LRP.pwn(48320) : error 006: must be assigned to an array
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Errors.
Code:
CMD:accent(playerid, params[])
{
    if(sscanf(params, "s[16]", params))
    {
        SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /accent [accent]");
        SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /accent none - to remove your accent!");
        return 1;
    }
    if(!strcmp(params, "none"))
    {
        format(PlayerInfo[playerid][pAccent], 16, "");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, " You are not using any accent now.");
    }
    else{
    PlayerInfo[playerid][pAccent] = params;}
    return 1;
}



Re: 1 Error - Misiur - 24.03.2013

pawn Code:
strcat((PlayerInfo[playerid][pAccent][0] = EOS, PlayerInfo[playerid][pAccent]), params);



Re: 1 Error - LeeXian99 - 24.03.2013

Code:
else{
    PlayerInfo[playerid][pAccent] = params};
Maybe this? o.o


Re: 1 Error - Nivniv2 - 24.03.2013

Quote:
Originally Posted by Misiur
View Post
pawn Code:
strcat((PlayerInfo[playerid][pAccent][0] = EOS, PlayerInfo[playerid][pAccent]), params);
not working..


Re: 1 Error - Nivniv2 - 25.03.2013

Quote:
Originally Posted by LeeXian99
View Post
Code:
else{
    PlayerInfo[playerid][pAccent] = params};
Maybe this? o.o
Not working bro


Respuesta: 1 Error - Pedro Pawno - 25.03.2013

operators are being misused.