21.01.2013, 11:42
when i go to compile the script i get the following errors
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(531) : error 025: function heading differs from prototype
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(536) : error 012: invalid function call, not a valid address
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(536) : warning 215: expression has no effect
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(536) : error 001: expected token: ";", but found ")"
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(536) : error 029: invalid expression, assumed zero
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(536) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
and now this here is Line 531-548
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(531) : error 025: function heading differs from prototype
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(536) : error 012: invalid function call, not a valid address
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(536) : warning 215: expression has no effect
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(536) : error 001: expected token: ";", but found ")"
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(536) : error 029: invalid expression, assumed zero
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(536) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
and now this here is Line 531-548
Код:
public NearByMessage(playerid, color, string[], Float: range) { new Float: PlayerX, Float: PlayerY, Float: PlayerZ; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && IsPlayerSpawned(i)) { GetPlayerPos(playerid, PlayerX, PlayerY, PlayerZ); if(IsPlayerInRangeOfPoint(i, range, PlayerX, PlayerY, PlayerZ)) { if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)) { SendClientMessage(i, color, string); } } } } }