21.01.2013, 11:59
ok now i get
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(453) : warning 202: number of arguments does not match definition
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(472) : warning 202: number of arguments does not match definition
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
4 Errors.
SendClientMessage(playerid, WHITE, "Vehicle engine stopped successfully.");
line 453= NearByMessage(playerid, PURPLE, msg);
DeletePVar(playerid, "fuelonoff");
format(msg, sizeof(msg), " ** %s starts the engine of their vehicle.", Character);
line 472= NearByMessage(playerid, PURPLE, msg);
arr_Engine{vehicleid} = 1;
line 536=
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(453) : warning 202: number of arguments does not match definition
C:\Users\Gharrett\Desktop\Scratch Roleplay\gamemodes\ScratchRP.pwn(472) : warning 202: number of arguments does not match definition
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
4 Errors.
SendClientMessage(playerid, WHITE, "Vehicle engine stopped successfully.");
line 453= NearByMessage(playerid, PURPLE, msg);
DeletePVar(playerid, "fuelonoff");
format(msg, sizeof(msg), " ** %s starts the engine of their vehicle.", Character);
line 472= NearByMessage(playerid, PURPLE, msg);
arr_Engine{vehicleid} = 1;
Код:
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); } } } } }