Posts: 398
Threads: 19
Joined: Aug 2011
Reputation:
0
public OnPlayerSpawn(playerid)
{
new CheckForDarren[MAX_PLAYER_NAME];
GetPlayerName(playerid,CheckForDarren,sizeof(Check ForDarren));
if(skink==270) && CheckForDarren == "Darren_Kok" {
new string[128];
format(string,sizeof(string),"Welcome back Darren")
SetPlayerTeam(playerid, 1);
GangRank[playerid] = 1337;
SendClientMessage(COLOR_PURPLE,string);
}
return 1;
should be...
public OnPlayerSpawn(playerid)
{
new CheckForDarren[MAX_PLAYER_NAME];
GetPlayerName(playerid,CheckForDarren,sizeof(Check ForDarren));
if(skink==270 && strcmp(CheckForDarren, "Darren_Kok", true) {
new string[128];
format(string,sizeof(string),"Welcome back Darren")
SetPlayerTeam(playerid, 1);
GangRank[playerid] = 1337;
SendClientMessage(COLOR_PURPLE,string);
}
return 1;
}
Posts: 130
Threads: 18
Joined: Jul 2010
Reputation:
0
Edit:
(594) : error 029: invalid expression, assumed zero
Error
Posts: 130
Threads: 18
Joined: Jul 2010
Reputation:
0
To take it literally.
SetPVarInt(playerid, "Name", GetPlayerName(playerid));
Doesn't works