SA-MP Forums Archive
Anything wrong? - 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: Anything wrong? (/showthread.php?tid=314433)



Anything wrong? - John Rockie - 29.01.2012

Код:
C:\Users\JUAN\Desktop\samp03\gamemodes\ww2.pwn(307) : error 017: undefined symbol "GivePlayerCash"
C:\Users\JUAN\Desktop\samp03\gamemodes\ww2.pwn(307) : warning 215: expression has no effect
C:\Users\JUAN\Desktop\samp03\gamemodes\ww2.pwn(307) : error 001: expected token: ";", but found "]"
C:\Users\JUAN\Desktop\samp03\gamemodes\ww2.pwn(307) : error 029: invalid expression, assumed zero
C:\Users\JUAN\Desktop\samp03\gamemodes\ww2.pwn(307) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
pawn Код:
public OnPlayerConnect(playerid)
{
    GivePlayerCash(playerid,PlayerInfo[playerid][pCash]);
    HasBoughtArmor[playerid] = 0;
    gPlayerLogged[playerid] = 0;
    TeamWarning[playerid] = 0;
    new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "%s has joined the server", pname);
    SendClientMessageToAll(0xAAAAAAAA, string);
    return 1;
}



Re: Anything wrong? - =WoR=Varth - 29.01.2012

https://sampwiki.blast.hk/wiki/Function:GivePlayerMoney


Re: Anything wrong? - sabretur - 29.01.2012

pawn Код:
public OnPlayerConnect(playerid)
{
    GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
    HasBoughtArmor[playerid] = 0;
    gPlayerLogged[playerid] = 0;
    TeamWarning[playerid] = 0;
    new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "%s has joined the server", pname);
    SendClientMessageToAll(0xAAAAAAAA, string);
    return 1;
}



Re: Anything wrong? - John Rockie - 29.01.2012

Thanks.