Error SAMP wtf i am so ANGRY
#1

Ok here is the warn/error

Код:
C:\Users\Dennis Laptop\Desktop\latw.pwn(1498) : error 017: undefined symbol "YSI_gnew"
C:\Users\Dennis Laptop\Desktop\latw.pwn(1498) : warning 215: expression has no effect
C:\Users\Dennis Laptop\Desktop\latw.pwn(1498) : error 001: expected token: ")", but found ";"
C:\Users\Dennis Laptop\Desktop\latw.pwn(1498) : error 036: empty statement
C:\Users\Dennis Laptop\Desktop\latw.pwn(1498) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Код:
dcmd_givemoney(playerid, params[]) // Level 3
{
if(PlayerInfo[playerid][pAdmin] < 3) return SendClientMessage(playerid, COLOR_LIGHTRED, "You are not authorized to use this command!");
new target, money;
new string[128];
if(sscanf(params, "ud", target, money)) return SendClientMessage(playerid, COLOR_ORANGE, "CMD: /givemoney [playerid/name] [amount]");
if(!IsPlayerConnected(target)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Invalid player id!");
if(money < 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You can't givemoney below 0!");
GivePlayerMoney(target, money);
PlayerInfo[target][pMoney] += money;
format(string, sizeof(string), "Admin %s has given you %d !", PlayerName(playerid), money);
SendClientMessage(target, COLOR_LIGHTGREEN, string);
foreach(new Player ,i)
{
Reply
#2

What line is line 1498?
Reply
#3

pawn Код:
foreach(new Player ,i)
That's incorrect.

It'd be:
pawn Код:
foreach(Player, i)
However, the new syntax is:
pawn Код:
foreach(new i : Player)
It's better to update your foreach include and update the syntax too.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)