26.08.2015, 00:46
PHP код:
CMD:darlider(playerid, params[])
{
new id, org, string[256];
if(sscanf(params, "ii", id, org)) return SendClientMessage(playerid, 0x9C9C9CAA, "USE: /darlider [ID] [ORGANIZAЗГO]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0x9C9C9CAA, "Este jogador nгo estб online.");
//LINHA format(string, sizeof(string), "Vocк promoveu %s a lнder da organizaзгo: %s." PlayerName(id), GetOrgName(org));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "Vocк foi promovido a lнder %s, pelo admin %s.", PlayerName(id), PlayerName(playerid));
SendClientMessage(id, COLOR_LIGHTBLUE, string);
pDados[id][Organizacao] = org;
pDados[id][Cargo] = 6;
SpawnPlayer(id);
return 1;
}
PHP код:
C:\Users\Usuario\Desktop\RPG\gamemodes\BPS.pwn(287) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\Usuario\Desktop\RPG\gamemodes\BPS.pwn(287) : error 001: expected token: ";", but found ")"
C:\Users\Usuario\Desktop\RPG\gamemodes\BPS.pwn(287) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Desktop\RPG\gamemodes\BPS.pwn(287) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.