05.08.2013, 02:03
ok i done added this and i got errors (at the bottom)
btw did i mention that im a noob scripter so please explain like if your are explaining to a baby AND THANKS IN ADVANCE AND THANK YOU MARRICIO
i get these errors
btw did i mention that im a noob scripter so please explain like if your are explaining to a baby AND THANKS IN ADVANCE AND THANK YOU MARRICIO
pawn Код:
new vcar_names[MAX_PLAYER_NAME][25];
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicleid =GetPlayerVehicleID(playerid);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof pname);
if (newstate == PLAYER_STATE_DRIVER)
{
if (vehicleid == vcar[0]) //=============line 1422
{
if(strcmp(pname, vcar_names[0] true) == 0)
{
SendClientMessage(playerid, COLOR_RED, "WELCOME VIP");
return 1;
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "THIS VEHICLE DOES NOT BELONG TO YOU");
}
}
}
return 1;
}
// then you create them this way, setting their name/owner
vcar[0] = CreateVehicle(421, 1766.8463, -2116.9495, 13.3474, 269.9729, 166, 166, 30);
vcar_names[0] = "[XL]KAOS";
pawn Код:
:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(1380) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(1422) : error 017: undefined symbol "vcar"
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(1422) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(1422) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(1422) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\SA SERVER\OFFICAL SERVER\gamemodes\xlgwolds.pwn(1422) : fatal error 107: too many error messages on one line