SA-MP Forums Archive
[AJUDA] Basica mas eu nao sei hehe - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Basica mas eu nao sei hehe (/showthread.php?tid=338363)



[AJUDA] Basica mas eu nao sei hehe - goku114 - 29.04.2012

bom to com 2 warning e eu nao gosto disso

Код:
C:\Users\Rafael\Desktop\OIOI\OIOI\OI.pwn(14627) : warning 213: tag mismatch
C:\Users\Rafael\Desktop\OIOI\OIOI\OI.pwn(14627) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

Header size:          10564 bytes
Code size:          1972488 bytes
Data size:          2612528 bytes
Stack/heap size:      16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 4611964 bytes

2 Warnings.
//equipe Aztecas
CreatePickup(1242, 2818.5217,-1169.8910,1025.577; Erro e akie
if(strcmp(cmd, "/equipar", true) == 0)
{
if(GetPlayerOrg(playerid) == 5)
{
if(PlayerToPoint(3, playerid, 2818.5217,-1169.8910,1025.577)
{

ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 34;
GivePlayerWeapon(playerid, 25, 100);
GivePlayerWeapon(playerid, 5, 1);
GivePlayerWeapon(playerid, 29, 150);
GivePlayerWeapon(playerid, 33, 50);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 34, 20);
GivePlayerWeapon(playerid, 16, 2);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк pegou seu equipamento de {FFFF00}Gangster");
}
}
return 1;
}


Re: [AJUDA] Basica mas eu nao sei hehe - BillieJoe - 29.04.2012

Coloque os cуdigos entre [*pawn] e [/pawn]

OBS: retire o *


Re: [AJUDA] Basica mas eu nao sei hehe - Matheus_Ecko - 29.04.2012

pawn Код:
CreatePickup(1242, 23, 2818.5217,-1169.8910,1025.577,0);

    if(strcmp(cmd, "/equipar", true) == 0)
    {
        if(GetPlayerOrg(playerid) == 5)
        {
            if(PlayerToPoint(3, playerid, 2818.5217,-1169.8910,1025.577))
            {
                ResetPlayerWeapons(playerid);
                GivePlayerWeapon(playerid, 24, 34;
                GivePlayerWeapon(playerid, 25, 100);
                GivePlayerWeapon(playerid, 5, 1);
                GivePlayerWeapon(playerid, 29, 150);
                GivePlayerWeapon(playerid, 33, 50);
                GivePlayerWeapon(playerid, 29, 500);
                GivePlayerWeapon(playerid, 34, 20);
                GivePlayerWeapon(playerid, 16, 2);
                SetPlayerHealth(playerid, 100);
                SetPlayerArmour(playerid, 100);
                SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк pegou seu equipamento de {FFFF00}Gangster");
            }
        }
        return 1;
    }
@edit usei os parametros agora.


Re: [AJUDA] Basica mas eu nao sei hehe - zbt - 29.04.2012

tб faltando 2 parametros ae

da uma olhada https://sampwiki.blast.hk/wiki/CreatePickup

tipo e o mundo virtual.