SA-MP Forums Archive
4 errors -_- - 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: 4 errors -_- (/showthread.php?tid=380961)



4 errors -_- - thefatshizms - 27.09.2012

Код:
C:\Users\iphone\Desktop\SFCNR\Sfcnr Scripting\gamemodes\Sfcnr.pwn(1515) : error 012: invalid function call, not a valid address
C:\Users\iphone\Desktop\SFCNR\Sfcnr Scripting\gamemodes\Sfcnr.pwn(1515) : warning 215: expression has no effect
C:\Users\iphone\Desktop\SFCNR\Sfcnr Scripting\gamemodes\Sfcnr.pwn(1515) : error 001: expected token: ";", but found ")"
C:\Users\iphone\Desktop\SFCNR\Sfcnr Scripting\gamemodes\Sfcnr.pwn(1515) : error 029: invalid expression, assumed zero
C:\Users\iphone\Desktop\SFCNR\Sfcnr Scripting\gamemodes\Sfcnr.pwn(1515) : fatal error 107: too many error messages on one line

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


4 Errors.
pawn Код:
PlayerTextDrawSetString(playerid, moneyhere(playerid), rob);



Re: 4 errors -_- - Jarnu - 27.09.2012

Does your moneyhere(playerid) which you used in it exists? .. if yes can you show please?


Re: 4 errors -_- - Glint - 27.09.2012

What is this
Quote:

moneyhere(playerid)

?


Re: 4 errors -_- - thefatshizms - 27.09.2012

it does exist lol i aint that dumb :P

pawn Код:
new PlayerText:moneyhere[MAX_PLAYERS];


    moneyhere[playerid]= CreatePlayerTextDraw(90.000000, 180.000000, "~g~Robbed $");
    TextDrawBackgroundColor(moneyhere(playerid), 255);
    TextDrawFont(moneyhere(playerid), 1);
    TextDrawLetterSize(moneyhere(playerid), 1.950000, 6.000000);
    TextDrawColor(moneyhere(playerid), -1);
    TextDrawSetOutline(moneyhere(playerid), 1);
    TextDrawSetProportional(moneyhere(playerid), 1);



Re: 4 errors -_- - Jarnu - 27.09.2012

Found the problem! you use moneyhere(playerid)
it must be
pawn Код:
PlayerTextDrawSetString(playerid, moneyhere[playerid], rob);



Re: 4 errors -_- - HyDrAtIc - 27.09.2012

Maybe try this?

pawn Код:
PlayerTextDrawSetString(playerid, moneyhere[playerid], rob);


EDIT:Too late


Re: 4 errors -_- - thefatshizms - 27.09.2012

Thanks!