09.03.2013, 10:51
what is more faster then strcmp?
and please show me an exemple on my loading system
and please show me an exemple on my loading system
pawn Код:
if(!strcmp(temp[0], "Score", true))
{
PlayerInfo[playerid][pScore] = strval(temp[1]);
SetPlayerScore(playerid,PlayerInfo[playerid][pScore]);
}
else if(!strcmp(temp[0], "Admin", true))
{
SetPlayerAdminLevel(playerid,strval(temp[1]));
}
else if(!strcmp(temp[0], "Job", true))
{
SetPlayerJobID(playerid, strval(temp[1]));
}
else if(!strcmp(temp[0], "Cash", true))
{
SetPlayerCash(playerid,strval(temp[1]));
}
else if(!strcmp(temp[0], "health", true))
{
PlayerInfo[playerid][healthP] = strval(temp[1]);
}
else if(!strcmp(temp[0], "x", true))
{
PlayerInfo[playerid][PosX] = strval(temp[1]);
}
else if(!strcmp(temp[0], "y", true))
{
PlayerInfo[playerid][PosY] = strval(temp[1]);
}
else if(!strcmp(temp[0], "z", true))
{
PlayerInfo[playerid][PosZ] = strval(temp[1]);
}
else if(!strcmp(temp[0], "Interior", true))
{
PlayerInfo[playerid][Inter] = strval(temp[1]);
}