[Ajuda] bandana
#4

C:\Users\Computador\Desktop\bandana.pwn(20) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Computador\Desktop\bandana.pwn(20) : warning 215: expression has no effect
C:\Users\Computador\Desktop\bandana.pwn(21) : warning 209: function "OnPlayerSpawn" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

#include <a_samp>
#include <zcmd>

new Bandana[MAX_PLAYERS];

CMD:bandana(playerid)
{
SetPlayerAttachedObject(playerid, 0, 18912, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
SendClientMessage(playerid, -1, " » Para remover a bandana use: /rb");
Bandana[playerid] = 1;
return 1;
}

public OnPlayerSpawn(playerid)
{
switch(Bandana[playerid])
{
case 0: return 1;
case 1: cmd_bandana(playerid);
return 1;
}
Reply


Messages In This Thread
bandana - by helpmesamp - 26.07.2017, 02:15
Re: bandana - by IlanZ - 26.07.2017, 02:57
Re: bandana - by helpmesamp - 26.07.2017, 03:28
Re: bandana - by helpmesamp - 26.07.2017, 03:39
Re: bandana - by IlanZ - 26.07.2017, 12:28
Re: bandana - by F1N4L - 26.07.2017, 13:24

Forum Jump:


Users browsing this thread: 1 Guest(s)