12.03.2012, 08:52
I have a problem, i use a script like that :
When I compile, I got error :
How do I fix this error ?
Thanks
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";
}
Код:
error 006: must be assigned to an array
Thanks