if(strcmp(cmd, /armarse", true) == 0) {
if(PlayerInfo[playerid][pFaccion] == 1){
if(IsPlayerInRangeOfPoint(playerid,6.0,274.5042,119.2094,1004.6172)){
GivePlayerWeapon(playerid, 24, 9977);
GivePlayerWeapon(playerid, 3, 9977);
GivePlayerWeapon(playerid, 27, 9977);
GivePlayerWeapon(playerid, 31, 9977);
GivePlayerWeapon(playerid, 29, 9977);
SetPlayerArmour(playerid,100);
}
}
return 1;
}
CMD:armarse(playerid,params[])
if(PlayerInfo[playerid][pFaccion] == 1){
if(IsPlayerInRangeOfPoint(playerid,6.0,274.5042,119.2094,1004.6172)){
GivePlayerWeapon(playerid, 24, 8888);
GivePlayerWeapon(playerid, 3, 8888);
GivePlayerWeapon(playerid, 27, 8888);
GivePlayerWeapon(playerid, 31, 8888);
GivePlayerWeapon(playerid, 29, 8888);
SetPlayerArmour(playerid,100);
}
}
return 1;
}
CMD:armarse(playerid,params[])
{ // Faltaba esta llave
if(PlayerInfo[playerid][pFaccion] == 1)
{
if(IsPlayerInRangeOfPoint(playerid, 6.0, 274.5042, 119.2094, 1004.6172))
{
GivePlayerWeapon(playerid, 24, 8888);
GivePlayerWeapon(playerid, 3, 8888);
GivePlayerWeapon(playerid, 27, 8888);
GivePlayerWeapon(playerid, 31, 8888);
GivePlayerWeapon(playerid, 29, 8888);
SetPlayerArmour(playerid,100);
}
}
return 1;
}
C:\Users\Usuario\Desktop\Hispania Zerok\gamemodes\NZRP.pwn(1337) : error 029: invalid expression, assumed zero C:\Users\Usuario\Desktop\Hispania Zerok\gamemodes\NZRP.pwn(1337) : error 017: undefined symbol "cmd_armarse" C:\Users\Usuario\Desktop\Hispania Zerok\gamemodes\NZRP.pwn(1337) : error 029: invalid expression, assumed zero C:\Users\Usuario\Desktop\Hispania Zerok\gamemodes\NZRP.pwn(1337) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
CMD:armarse(playerid,params[]) |
public OnPlayerCommandText(playerid, cmdtext[]) { new cmd[128]; new idx; cmd = strtok(cmdtext, idx); if (strcmp("/kill", cmdtext, true) == 0) { SetPlayerHealth(playerid, 0); return 1; } |