Moin @breadfish User,
Ich hab mir eben nach kleiner Anleitung mal ein PayDay System gescriptet und ich verzweifle gerade...
public minute()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
dini_IntSet(i,"payday",pInfo[playerid][payday]+1);
if(pInfo[playerid][payday]==1)
{
dini_IntSet(i,"payday",pInfo[playerid][payday]-1);
GivePlayerMoney(i,+1500);
SetPlayerScore(i,+1);
SendClientMessageToAll(dunkelgrün, "Du hast deinen Gehaltscheck erhalten. 2500€");
continue;
}
}
}
}
errors:
C:\Users\danie\Desktop\SERVER\gamemodes\script.pwn(573) : error 035: argument type mismatch (argument 1)
C:\Users\danie\Desktop\SERVER\gamemodes\script.pwn(574) : error 017: undefined symbol "playerid"
C:\Users\danie\Desktop\SERVER\gamemodes\script.pwn(576) : error 035: argument type mismatch (argument 1)
C:\Users\danie\Desktop\SERVER\gamemodes\script.pwn(577) : error 029: invalid expression, assumed zero
C:\Users\danie\Desktop\SERVER\gamemodes\script.pwn(577) : warning 215: expression has no effect
C:\Users\danie\Desktop\SERVER\gamemodes\script.pwn(577) : error 001: expected token: ";", but found ")"
C:\Users\danie\Desktop\SERVER\gamemodes\script.pwn(577) : error 029: invalid expression, assumed zero
C:\Users\danie\Desktop\SERVER\gamemodes\script.pwn(577) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
Hilfe wäre echt nett