10.11.2011, 03:23
pawn Код:
if(strcmp("/comprar2",cmd,true,10) == 0)
{
if(gTeam[playerid] == TEAM_ZOMBIE)
{
ShowPlayerDialog(playerid,2394,DIALOG_STYLE_LIST,"{FFFFFF}-Gun Shop-Zombies-","{FF0000}Knife ($5000)\n{FF0000}Moto-serra. ($2000)\n{FF0000}Purple dildo ","Comprar","Cancelar");
}
else if(gTeam[playerid] == TEAM_HUMAN) {
SendClientMessage(playerid,VERDE_AZUL,"Erro: {FFA500}Vocк nгo pode usar este comando vocк й um Humano");
}
return 1;
}
pawn Код:
if(dialogid==2394) {
if(response) {
if(listitem==0) { // Knife
if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, RED, "Vocк nгo tem dinheiro suficiente!");
GivePlayerWeapon(playerid,4,500);
GivePlayerMoney(playerid,-2000);
SendClientMessage(playerid,0x00FF00FF,"Vocк Comprou uma Knife por ${FFFFFF}2000.");
}
if(listitem==1) { // Moto-serra
if(GetPlayerMoney(playerid) < 2000) return SendClientMessage(playerid, RED, "Vocк nгo tem dinheiro suficiente!");
GivePlayerWeapon(playerid,22,600);
GivePlayerMoney(playerid,-5000);
SendClientMessage(playerid,0x00FF00FF,"Vocк Comprou Moto-serra por ${FFFFFF}5000.");
}
if(listitem==2) { // Purple dildo
if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, RED, "Vocк nгo tem dinheiro suficiente!");
GivePlayerWeapon(playerid,10,540);
GivePlayerMoney(playerid,-5000);
SendClientMessage(playerid,0x00FF00FF,"Vocк Comprou um Purple dildo por${FFFFFF}500.");
}
}
}
return 0;
}
pawn Код:
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6622) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6623) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6624) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6625) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6630) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6631) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6636) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6637) : error 010: invalid function or declaration
C:\Users\Richad\Desktop\Extreme Zombie\gamemodes\Zombie.pwn(6645) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Errors.