Payday System Help - 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: Payday System Help (
/showthread.php?tid=427998)
Payday System Help -
emmaus09 - 04.04.2013
Hello Guys I want to make payday system
My coding
forward PayDay();
SetTimer("PayDay", 60 * 1000, true);
public PayDay()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)){
GivePlayerScore(i, +1);
GivePlayerMoney(i, +1000);
SendClientMessageToAll(-1, "Payday!!!!!!!!");
}
}
return 1;
}
If i Compile it shows
E:\Hibari\gamemodes\emmaus.pwn(954) : error 017: undefined symbol "GivePlayerScore"
E:\Hibari\gamemodes\emmaus.pwn(954) : warning 215: expression has no effect
E:\Hibari\gamemodes\emmaus.pwn(954) : error 001: expected token: ";", but found ")"
E:\Hibari\gamemodes\emmaus.pwn(954) : error 029: invalid expression, assumed zero
E:\Hibari\gamemodes\emmaus.pwn(954) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Please Help me
Re: Payday System Help -
emmaus09 - 04.04.2013
Please give me a New Code for It
Re: Payday System Help -
brawrr - 04.04.2013
replace
giveplayerscore to
SetPlayerScore
Re: Payday System Help -
MP2 - 04.04.2013
Remove the '+''s in your function and add this at the top of your script (under a_samp)
pawn Код:
#define GivePlayerScore(%0,%1) SetPlayerScore(%0, GetPlayerScore(%0)+%1)