14.04.2011, 09:44
In my var bombowner[128][MAX_VEHICLES] I store the name of a player, so why am i getting this error?
error line
pawn Код:
public Explodevehicle(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:x,Float:y,Float:z,string[200],vehicle;
vehicle = GetPlayerVehicleID(playerid);
GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
CreateExplosion(x,y,z,2,10.0);
bombed[GetPlayerVehicleID(playerid)] = 0;
format(string,sizeof(string),"~w~Your ~h~~r~%s ~y~has been ~g~~h~exploded with ~b~~h~%s ~g~~h~inside!",GetVehicleName(bombed[GetPlayerVehicleID(playerid)]),GetPName(playerid));
GameTextForPlayer(bombowner[vehicle],string,4000,3);
}
return 1;
}
Код:
C:\Users\Admin\Desktop\test server\gamemodes\gamemode.pwn(5259) : error 035: argument type mismatch (argument 1)
pawn Код:
GameTextForPlayer(bombowner[vehicle],string,4000,3);