14.06.2010, 07:50
i need fix theses warnings so my GM will load
Thoses warnings are in these lines
Please help!
Код:
C:\Users\Charlie\Desktop\SAMP Server\filterscripts\AdminIsland.pwn(200) : warning 202: number of arguments does not match definition C:\Users\Charlie\Desktop\SAMP Server\filterscripts\AdminIsland.pwn(200) : warning 202: number of arguments does not match definition C:\Users\Charlie\Desktop\SAMP Server\filterscripts\AdminIsland.pwn(206) : warning 202: number of arguments does not match definition C:\Users\Charlie\Desktop\SAMP Server\filterscripts\AdminIsland.pwn(206) : warning 202: number of arguments does not match definition C:\Users\Charlie\Desktop\SAMP Server\filterscripts\AdminIsland.pwn(212) : warning 202: number of arguments does not match definition C:\Users\Charlie\Desktop\SAMP Server\filterscripts\AdminIsland.pwn(212) : warning 202: number of arguments does not match definition C:\Users\Charlie\Desktop\SAMP Server\filterscripts\AdminIsland.pwn(218) : warning 202: number of arguments does not match definition C:\Users\Charlie\Desktop\SAMP Server\filterscripts\AdminIsland.pwn(218) : warning 202: number of arguments does not match definition C:\Users\Charlie\Desktop\SAMP Server\filterscripts\AdminIsland.pwn(222) : warning 209: function "OnPlayerCommandText" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 9 Warnings.
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/lgate", cmdtext, true) == 0) { lgate = MoveObject(lgate,-825.0629,534.3886,4.4332,0.000000,0.000000,90); SendClientMessage(playerid, COLOR_BRIGHTRED, "Gate Opened enjoy!."); return 1; } if(strcmp("/lclose", cmdtext, true) == 0) { lgate = MoveObject(lgate,-824.91625976563,526.78576660156,4.8442096710205,0.000000,0.000000,90); SendClientMessage(playerid, COLOR_BRIGHTRED, "Gate Closed"); return 1; } if(strcmp("/rgate", cmdtext, true) == 0) { rgate = MoveObject(rgate,-827.23461914063,492.59222412109,4.7193446159363,0.000000,0.000000,90); SendClientMessage(playerid, COLOR_BRIGHTRED, "Gate Opened."); return 1; } if(strcmp("/rclose", cmdtext, true) == 0) { rgate = MoveObject(rgate,-825.23461914063,492.59222412109,4.7193446159363,0.000000,0.000000,90); SendClientMessage(playerid, COLOR_BRIGHTRED, "Gate Closed."); return 1; } }