Code:
C:\Users\Shadow\Desktop\LARP v3.5 za LOCALHOST\gamemodes\IRP.pwn(42111) : error 035: argument type mismatch (argument 2)
C:\Users\Shadow\Desktop\LARP v3.5 za LOCALHOST\gamemodes\IRP.pwn(42112) : error 035: argument type mismatch (argument 2)
C:\Users\Shadow\Desktop\LARP v3.5 za LOCALHOST\gamemodes\IRP.pwn(42113) : error 035: argument type mismatch (argument 2)
C:\Users\Shadow\Desktop\LARP v3.5 za LOCALHOST\gamemodes\IRP.pwn(42114) : error 035: argument type mismatch (argument 2)
C:\Users\Shadow\Desktop\LARP v3.5 za LOCALHOST\gamemodes\IRP.pwn(42115) : error 035: argument type mismatch (argument 2)
C:\Users\Shadow\Desktop\LARP v3.5 za LOCALHOST\gamemodes\IRP.pwn(42116) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
Code:
CMD:gateinfo(playerid, params[])
{
if(PlayerInfo[playerid][pDev] >= 2 || PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pMapper] == MAPPERRANK_MANAGER)
{
new string[8000];
for(new gt = 0; gt < MAX_GATES; gt++)
{
if(Gates[gt][GateCreated] == 1)
{
if(IsPlayerInRangeOfPoint(playerid, 8, Gates[gt][GateX], Gates[gt][GateY], Gates[gt][GateZ]))
{
strcat(string,COLOR_YELLOW,"____________________________________________");
strcat(string,COLOR_WHITE,"Gate ID : %i Created by: %s HouseID: %i Speed: %f ObjectID: %d", gt, Gates[gt][GateBy], Gates[gt][GateHouseID], Gates[gt][GateSpeed], Gates[gt][GateObjectID]);
strcat(string,COLOR_WHITE,"Radius: %f", Gates[gt][GateRadius]);
strcat(string,COLOR_WHITE,"X: %f, Y: %f, Z: %f", Gates[gt][GateX], Gates[gt][GateY], Gates[gt][GateZ]);
strcat(string,COLOR_WHITE,"VW: %d, INT: %d", Gates[gt][GateVW], Gates[gt][GateINT]);
strcat(string,COLOR_YELLOW,"____________________________________________");
{
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "Gate Info", string, "Okay", "Cancel");
}
}
}
}
}
else
{
AdmErrorMsg;
}
return 1;
}