29.10.2015, 21:06
Estava tentando restringir um comando para sу quem e vip usar "no caso nгo tem sistema de vip estou apenas testando"
sу que deu esses erros:
codigo
variavel
sу que deu esses erros:
Quote:
C:\Users\Val\Desktop\PAWN\GAMEMODES\samp 0.3.7\filterscripts\brincadeiras.pwn(94) : error 017: undefined symbol "PlayerInfo" C:\Users\Val\Desktop\PAWN\GAMEMODES\samp 0.3.7\filterscripts\brincadeiras.pwn(94) : warning 215: expression has no effect C:\Users\Val\Desktop\PAWN\GAMEMODES\samp 0.3.7\filterscripts\brincadeiras.pwn(94) : error 001: expected token: ";", but found "]" C:\Users\Val\Desktop\PAWN\GAMEMODES\samp 0.3.7\filterscripts\brincadeiras.pwn(94) : error 029: invalid expression, assumed zero C:\Users\Val\Desktop\PAWN\GAMEMODES\samp 0.3.7\filterscripts\brincadeiras.pwn(94) : 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("/reparar", cmdtext, true, 10) == 0) { if(PlayerInfo[playerid][VIP] < 1) return SendClientMessage(playerid, -1, "Vocк nгo pode usar esse comando"); if(!IsPlayerInAnyVehicle(playerid))SendClientMessa ge(playerid,0xFF0000FF, " [ERRO]Vocк nгo estб em um veiculo"); RepairVehicle(GetPlayerVehicleID(playerid)); if(IsPlayerInAnyVehicle(playerid))SendClientMessag e(playerid,0xFF0000FF, "Veiculo reparado com sucesso."); return 1; } return 0; } |
Quote:
new VIP; |