[Ajuda] Onde diabos tem erro aqui?
#1

Onde diabos tem erros aqui?
[pawn]
forward SpawnArmas(playerid);
public SpawnArmas(playerid);
{
if(IsACop)
{
switch( patente[playerid] )
case 1:
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 30.0);
GivePlayerWeapon(playerid, 24, 70);
GivePlayerWeapon(playerid, 29, 300);
}
case 2:
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 50.0);
GivePlayerWeapon(playerid, 24, 105);
GivePlayerWeapon(playerid, 29, 450);
GivePlayerWeapon(playerid, 25, 150);
}
case 3:
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 60.0);
GivePlayerWeapon(playerid, 24, 140);
GivePlayerWeapon(playerid, 29, 600);
GivePlayerWeapon(playerid, 25, 140);
GivePlayerWeapon(playerid, 31, 300);
}
case 4:
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 70.0);
GivePlayerWeapon(playerid, 24, 175);
GivePlayerWeapon(playerid, 29, 600);
GivePlayerWeapon(playerid, 27, 175);
GivePlayerWeapon(playerid, 31, 300);
}
case 5:
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 80.0);
GivePlayerWeapon(playerid, 24, 200);
GivePlayerWeapon(playerid, 29, 1000);
GivePlayerWeapon(playerid, 27, 200);
GivePlayerWeapon(playerid, 31, 600);
}
case 6:
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 90.0);
GivePlayerWeapon(playerid, 24, 250);
GivePlayerWeapon(playerid, 29, 1500);
GivePlayerWeapon(playerid, 27, 250);
GivePlayerWeapon(playerid, 31, 1000);
}
case 7:
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeapon(playerid, 24, 300);
GivePlayerWeapon(playerid, 29, 2000);
GivePlayerWeapon(playerid, 27, 300);
GivePlayerWeapon(playerid, 31, 1500);
}
case 8:
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 40.0);
GivePlayerWeapon(playerid, 24, 80);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 33, 300);
}
case 9:
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 80.0);
GivePlayerWeapon(playerid, 24, 80);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 34, 300);
}
case 10:
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100.0);
GivePlayerWeapon(playerid, 27, 150);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 34, 300);
}
}
else if(!IsACop)
{
GivePlayerWeapon(playerid, 22, 250);
}
return 1;
}
Reply
#2

tem um ';' no public...

pawn Код:
forward SpawnArmas(playerid);
public SpawnArmas(playerid);
Sу se usa ponto e vнrgula em chamadas de mйtodos e/ou criaзгo/definiзгo de variбveis e mйtodos.

A implementaзгo de mйtodos/estruturas de controle/repetiзгo requer apenas chaves "{" "}"

Abraзos.
Reply
#3

Nossa que imbecil que eu fui, nem tinha visto, tava atй nervoso, que erro bobo, pq tinha colocado lб em cima com ponto e virugla ai ai coloquei igual ushauhsuahsua
Vlw
Reply


Forum Jump:


Users browsing this thread: