21.10.2012, 11:28
I have this code:
But i getting this:
How i can fix it?
Код:
if (strcmp(cmdtext, "/say", true) == 0) { if(Admin[playerid] == true) { if(sscanf(params,"s", Text)) return SendClientMessage(playerid, 0xF00000FF, "Use /say [Text]"); format(string2, 128, "[Admin] %s: %s",PlayerName(playerid), Text); SendClientMessageToAll(0x10F441AA, string2); } else if(VIP[playerid] == true) { if(sscanf(params,"s", Text)) return SendClientMessage(playerid, 0xF00000FF, "Use /say [Text]"); format(string2, 128, "[VIP] %s: %s",PlayerName(playerid), Text); SendClientMessageToAll(0x10F441AA, string2); } return 1;
Код:
error 017: undefined symbol "PlayerName" error 017: undefined symbol "PlayerName"