Errors - 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: Errors (
/showthread.php?tid=437613)
Errors -
semaj - 16.05.2013
Hi folks
Getting errors with this can anyone help?
C:\Documents and Settings\james\My Documents\Downloads\MySQL\MySQL\gamemodes\MySQL.pw n(177) : error 010: invalid function or declaration
C:\Documents and Settings\james\My Documents\Downloads\MySQL\MySQL\gamemodes\MySQL.pw n(182) : error 010: invalid function or declaration
C:\Documents and Settings\james\My Documents\Downloads\MySQL\MySQL\gamemodes\MySQL.pw n(187) : error 010: invalid function or declaration
Код:
public OnPlayerSpawn(playerid)
{
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
return 1;
}
//================================================================//
// MySQL part //
//================================================================//
line 177--> if(MoneyGiven[playerid] != -1)
{
GivePlayerMoney(playerid, MoneyGiven[playerid]);
MoneyGiven[playerid] = -1;
}
if(JustLogged[playerid] == 1)
{
ShowPlayerDialog(playerid, DIALOG_POS, DIALOG_STYLE_MSGBOX, ""Blue"Sucessfully logged-in!", ""White"You have sucessfully logged-in to your account!\n\n"White"Would you like to load you previous possition?", "Yes", "No");
JustLogged[playerid] = 0;
}
return 1;
}
Re: Errors -
Avi Raj - 16.05.2013
you have to define how much you wanna give.
Just add :-
pawn Код:
MoneyGiven[playerid] += // Your Money;
Re: Errors -
thefatshizms - 16.05.2013
You mean assign, not define.
Re: Errors -
semaj - 16.05.2013
where do i add it?