29.05.2009, 15:53
warning 211: possibly unintended assignment
Line: if (plname = "Sole")
Easy way to fix this?
Thanks,
~Andrew
Line: if (plname = "Sole")
Easy way to fix this?
Thanks,
~Andrew
if (plname == "Sole")
Originally Posted by [LARP
Aimless ]
It's in OnPlayerConnect and making it == gives the error error 033: array must be indexed (variable "plname") |
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
if(!strcmp(name,"Sole",true))
{
// your function
}