04.04.2013, 06:01
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
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