27.08.2013, 19:27
Ta dando erro nessa linha
render
public OnPlayerSpawn(playerid)
/assaltar
e declarei rendido lб em cima
E alguem sabe as outras duas que devem ser mais simples?
Quote:
|
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HAN DSUP); |
Quote:
|
C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(29977) : error 017: undefined symbol "SPECIAL_ACTION_HAN" C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(29977) : error 017: undefined symbol "DSUP" C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(29977) : error 029: invalid expression, assumed zero C:\Users\PC\Desktop\BPPF\pawno\ULTRA2.pwn(29977) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
Quote:
|
if(strcmp(cmd, "/handsup", true) == 0 || strcmp(cmd, "/render", true) == 0) { if(antihands[playerid] == 1) { SendClientMessage(playerid,COLOR_LIGHTGREEN,"vocк estб congelado nao pode usar o comando!"); return 1; } if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { rendido[playerid] = 1; SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HAN DSUP); return 1; } } |
Quote:
|
rendido[playerid] = 0; |
Quote:
|
if(!strcmp(cmd, "/assaltar", true)) { Assaltou[playerid] = gettime() + 55; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid, -1, "USO: /assaltar [ID]"); new id = strval(tmp); if(Assaltou[playerid] < gettime()) return SendClientMessage(playerid, -1, "Vocк usou este comando recentemente. Aguarde algum tempo para usб-lo novamente."); new Float:Pos[3]; GetPlayerPos(id, Pos[0], Pos[1], Pos[2]); if(!IsPlayerInRangeOfPoint(playerid, 5.0, Pos[0], Pos[1], Pos[2])) return SendClientMessage(playerid, 0xFF0000FF, "Vocк estб longe do jogador."); if(rendido[playerid] == 1) { new money = GetPlayerMoneyEx(id); GivePlayerMoneyEx(id, -money / 1); GivePlayerMoneyEx(playerid, money/1); //WantedPoints[playerid] = 10; SetPlayerCriminal(playerid,255, "Artigo 157, Roubo a mгo armada!"); SendClientMessage(playerid, 0xFFFF00FF, "Vocк assaltou alguem ! Agora corrra !"); SendClientMessage(id, 0xFFFF00FF, "Vocк foi assaltado !"); } return 1; } |
Quote:
|
new rendido[MAX_PLAYERS]; |

