09.03.2011, 04:24
(
Последний раз редактировалось DjAdy; 09.03.2011 в 05:05.
)
I'm tryng to make a new set of natives for my rp script wich will define noobs from normal players, hackers and others i just can't get right the strings and other functions i tryed 10 times in all the ways i know but as i am a bit of new in the domain of scripting i still can't get some things right!
This is the Error
And this is the hole code!
PS:what you see above is my atempt to mimic the getplayerdrunklevel,setplayerdrunklevel etc, altrough none copied from the originial inc for sa-mp . please help me cuz i can't make this shit work
Lines of error are one from getplayernooblevel
This is the Error
Код:
C:\Users\DjAdy\Desktop\wtf?\gamemodes\RP2.pwn(474) : error 010: invalid function or declaration C:\Users\DjAdy\Desktop\wtf?\gamemodes\RP2.pwn(474 -- 483) : error 010: invalid function or declaration C:\Users\DjAdy\Desktop\wtf?\gamemodes\RP2.pwn(474 -- 484) : error 010: invalid function or declaration C:\Users\DjAdy\Desktop\wtf?\gamemodes\RP2.pwn(474 -- 484) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
stock SetPlayerNoobLevel( playerid , level ) { ResetPlayerNoobLevel(playerid); return GivePlayerNoobLevel(playerid, level); } stock ResetPlayerNoobLevel( playerid) { new level; for (new i = 100, s = strlen(level); i < s: i--) { if(level[i] > '100' || level[i] < '0') } } stockGetPlayerNoobLevel(playerid) { new level; for (new i = 100, d = strlen(level); i = s: i=) { if(level[i] = '100' || level[i] < '0') } if(GetPlayerNoobLevel(playerid) == 100) { FormMessageForAll(playerid,"%s is a Mega Noob with level %d",GetPlayerName( playerid ), GetPlayerNoobLevel( playerid )); return 1; } } stock GivePlayerNoobLevel(playerid, level) { SetPlayerScore(playerid, -100); if(GetPlayerScore(playerid) == -100) { if(nvar == 0) { Attach3DTextLabelToPlayer(Text3D:megan, playerid, 45,23,13); return 1; } else if(nvar == 1) { Send("Already a Mega Noob) return 1; } } }
Lines of error are one from getplayernooblevel