18.01.2013, 14:12
Nao estou conseguindo fazer portoes com comandos Olhem o codigo q eu coloco:
E da os erros:
Quote:
|
// --- Portaoo new portaocasaa; #define Vermelho 0xFF0000AA #define Amarelo 0xFFFF00AA public OnFilterScriptInit() { portaocasaa = CreateObject(980, 211.5, -1349.80005, 52.7, 0, 0, 44); return 1; } OnPlayerCommandText(playerid, cmdtext[]){ if (strcmp("/abpc", cmdtext, true, 10) == 0) { if(!IsPlayerAdmin(playerid)) { MoveObject(portaocasaa, -219.39999, -1343.09998, 53.3, 0, 0, 44, 5.0); SendClientMessage(playerid, Vermelho, "Portгo Aberto Manolo rs"); return 1; } if (strcmp("/fbpc", cmdtext, true, 10) == 0) { if(!IsPlayerAdmin(playerid)) { MoveObject(portaocasaa, 211.5, -1349.80005, 52.7, 0, 0, 44); SendClientMessage(playerid, Vermelho, "Portгo Fechadinho manolo rs"); return 1; } } return 0; } |
Quote:
|
error 021: symbol already defined: "OnPlayerCommandText" error 030: compound statement not closed at the end of file (started at line 50360) |



