Payday System Help
#1

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
Reply
#2

Please give me a New Code for It
Reply
#3

replace giveplayerscore to SetPlayerScore
Reply
#4

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)