Help me !!
#1

I have a problem, i use a script like that :

pawn Код:
#define TEAM_Red 2

public OnPlayerConnect(playerid)
{
        SetPlayerClass(playerid, "Red");
        return 1;
}

stock GetPlayerClass(playerid)
{
     new asd[64];
     GetPVarString(playerid, "Class", asd, 64);
     return asd;
}

forward SetPlayerClass(playerid, class[]);
public SetPlayerClass(playerid, class[])
{
     new skin[32], asdf;
     SetPVarString(playerid, "Class", class);
     format(skin, 32, "TEAM_%s", class);
     asdf = "#skin";
}
When I compile, I got error :

Код:
error 006: must be assigned to an array
How do I fix this error ?
Thanks
Reply


Messages In This Thread
Help me !! - by Xaviour212 - 12.03.2012, 08:52
Re: Help me !! - by nmader - 12.03.2012, 08:53
Re: Help me !! - by Pghpunkid - 12.03.2012, 09:01
Re: Help me !! - by Xaviour212 - 12.03.2012, 11:26

Forum Jump:


Users browsing this thread: 3 Guest(s)