SA-MP Forums Archive
Help me how to set money on first spawn - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me how to set money on first spawn (/showthread.php?tid=469456)



Help me how to set money on first spawn - rockrolla - 13.10.2013

how to set money on first spawn


Re: Help me how to set money on first spawn - Patrick - 13.10.2013

pawn Код:
public OnPlayerSpawn(playeid)
{
    GivePlayerMoney(playerid, amount here);
    return 1;
}



Re: Help me how to set money on first spawn - Konstantinos - 13.10.2013

He said on first spawn. Your code will give money everytime they spawn.

However, by "first spawn" you mean when they register or if they login and they first spawn?


Re: Help me how to set money on first spawn - rockrolla - 13.10.2013

Quote:
Originally Posted by pds2012
Посмотреть сообщение
pawn Код:
public OnPlayerSpawn(playerid)
{
    GivePlayerMoney(playerid, 4000);
    return 1;
}
{
    TogglePlayerSpectating(playerid, false);
    // Anti F4 Bug - Logging/Registering
    if(!PlayerInfo[playerid][pLoggedIn] && !IsPlayerNPC(playerid))
    {
        if(IsPlayerNPC(playerid)) return 1;
        SetPlayerPos(playerid, 1975.203002, 3779.311523, -50.243506);
        SetPlayerCameraPos(playerid, 1975.203002, 3779.311523, 100.243506);
        SetPlayerCameraLookAt(playerid, 1975.203002, 3779.311523, -0.243506);
        SetSpawnInfo( playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
        new file[64];
        format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
        // Player isn't banned
        if(dini_Int(file, "AdminAccount") == 1)
        {
            format(file, sizeof(file), "users/%s.ini",RPNU(playerid));
            SetPlayerName(playerid, dini_Get(file, "OldName"));
            format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
            SSSShowDialog(playerid, 2);
        }
        if(!dini_Exists(file))
        {
            SSSShowDialog(playerid, 1);
            return 1;
        }
        else
        {
            SSSShowDialog(playerid, 2);
        }
        return 1;
Код:
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(1229) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(1241) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(1277) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(1391) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(1529) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(1615) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(1714) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(2011) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(2392) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(2424) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(2477) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(2523) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(2590) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(2627) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(2679) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(2763) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(2795) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(2827) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(2853) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(2883) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(2913) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(2943) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(2974) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(3005) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(3070) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(3109) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(3157) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(3185) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(3230) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(3261) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4414) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4454) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4499) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4507) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4511) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4516) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4730) : error 055: start of function body without function header
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4733) : error 010: invalid function or declaration
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4735) : error 010: invalid function or declaration
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4741) : error 021: symbol already defined: "format"
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4743) : error 010: invalid function or declaration
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4749) : error 054: unmatched closing brace ("}")
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4750) : error 010: invalid function or declaration
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4753) : error 010: invalid function or declaration
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4755) : error 010: invalid function or declaration
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4758) : error 054: unmatched closing brace ("}")
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4759) : error 010: invalid function or declaration
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4762) : error 021: symbol already defined: "ResetPlayerWeapons"
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4763) : error 010: invalid function or declaration
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4766) : error 021: symbol already defined: "GetPlayerName"
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4767) : error 010: invalid function or declaration
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4769) : error 010: invalid function or declaration
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4771) : error 010: invalid function or declaration
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4773) : error 010: invalid function or declaration
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4778) : error 054: unmatched closing brace ("}")
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4779) : error 010: invalid function or declaration
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(4780) : error 010: invalid function or declaration
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(5793) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(5924) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(6090) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(6323) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(6367) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(6570) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(6855) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(7744) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(8139) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(8532) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(9494) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(9720) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(9849) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(12667) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(12681) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(12686) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(12691) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(12696) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(14216) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(14249) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(14959) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(18376) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(18396) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(18451) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(18941) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(19253) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(19270) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(20479) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(20499) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(20542) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(22476) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(22524) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(22536) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(22573) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(22599) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(22611) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(22639) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(23029) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(23136) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(23154) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(23174) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(23214) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(23253) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(23292) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(23345) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(24854) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(24860) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(24863) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(24876) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(24889) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(24896) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(24908) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(24923) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(24974) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(24982) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(24997) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25013) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25032) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25069) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25073) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25077) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25191) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25272) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25273) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25274) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25275) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25276) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25615) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25620) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25626) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25632) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25637) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25641) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25776) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25780) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25794) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25807) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25824) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25903) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25917) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25922) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(25927) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26198) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26233) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26317) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26321) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26325) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26350) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26355) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26360) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26544) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26548) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26552) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26565) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26570) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26575) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26580) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26585) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26590) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26595) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26600) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26605) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(26610) : warning 202: number of arguments does not match definition
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(27467) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(27479) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(27492) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(27504) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(27514) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(27525) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(27534) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(32337) : error 025: function heading differs from prototype
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(32793) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(32810) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(34077) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(35726) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(35778) : warning 219: local variable "file" shadows a variable at a preceding level
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(35884) : warning 203: symbol is never used: "file"
E:\SAMP\gamemode samp\ILG-RP By Raccoon gaming\gamemodes\ILG-RP.pwn(35884) : warning 203: symbol is never used: "npcname"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


22 Errors.
so sorry error


Re: Help me how to set money on first spawn - rockrolla - 13.10.2013

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
He said on first spawn. Your code will give money everytime they spawn.

However, by "first spawn" you mean when they register or if they login and they first spawn?
register dude.


Re: Help me how to set money on first spawn - rockrolla - 13.10.2013

register and first spawn on game.


Re: Help me how to set money on first spawn - Patrick - 13.10.2013

I just noticed that Konstantinos, I apologize

Fixed OnPlayerSpawn
pawn Код:
public OnPlayerSpawn(playerid)
{
    TogglePlayerSpectating(playerid, false);
    // Anti F4 Bug - Logging/Registering
    if(!PlayerInfo[playerid][pLoggedIn] && !IsPlayerNPC(playerid))
    {
        if(IsPlayerNPC(playerid)) return 1;
        SetPlayerPos(playerid, 1975.203002, 3779.311523, -50.243506);
        SetPlayerCameraPos(playerid, 1975.203002, 3779.311523, 100.243506);
        SetPlayerCameraLookAt(playerid, 1975.203002, 3779.311523, -0.243506);
        SetSpawnInfo( playerid, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
        new file[64];
        format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
        // Player isn't banned
        if(dini_Int(file, "AdminAccount") == 1)
        {
            format(file, sizeof(file), "users/%s.ini",RPNU(playerid));
            SetPlayerName(playerid, dini_Get(file, "OldName"));
            format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
            SSSShowDialog(playerid, 2);
        }
        if(!dini_Exists(file))
        {
            SSSShowDialog(playerid, 1);
            return 1;
        }
        else
        {
        SSSShowDialog(playerid, 2);
    }
    return 1;
}
Add this on your register system
pawn Код:
GivePlayerMoney(playerid, 40000);



Re: Help me how to set money on first spawn - rockrolla - 13.10.2013

pawn Код:
else if(dialogid == 1) // Register
    {
        if(response)
        {
            if(strlen(inputtext) < 4)
            {
             SendClientMessage(playerid, COLOR_GREY, "Password can't be shorter than 4 characters.");
             SSSShowDialog(playerid, 1);
             return 1;
            }
            if(strlen(inputtext) > 256)
            {
                SendClientMessage(playerid, COLOR_GREY, "Password can't be longer than 256 characters.");
                SSSShowDialog(playerid, 1);
                return 1;
            }
            new file[64], IP[16], string[128], password[256];
            format(file, sizeof(file), "users/%s.ini", RPNU(playerid));
            if(!dini_Exists(file))
            {
                GetPlayerIp(playerid, IP, sizeof(IP));
                GivePlayerMoney(playerid, 5000);
                dini_Create(file);
                WP_Hash(password, sizeof(password), inputtext);
                dini_Set(file, "Password", password);
                dini_Set(file, "IP", IP);
                PlayerInfo[playerid][pLevel] = 1;
                dini_IntSet(file, "Level", PlayerInfo[playerid][pLevel]);
                format(string, sizeof(string), "SERVER: {FFFFFF}You have successfully registered on {FF6347}Indonesia Likes Gaming Roleplay{FFFFFF}. (Password: %s)", inputtext);
                SendClientMessage(playerid, COLOR_LIGHTRED, string);
                SSSShowDialog(playerid, 2);
            }
        }
        else
this could ,but money will return the original again


Re: Help me how to set money on first spawn - Konstantinos - 13.10.2013

If you use server-side money, then replace GivePlayerMoney to the function it uses.