key string waring
#1

pawn Код:
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(42035) : warning 202: number of arguments does not match definition
D:\Users\Administrator\Desktop\Holliwood FIX\gamemodes\larp.pwn(42041) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:      9196 bytes
Code size:     1651592 bytes
Data size:     10360352 bytes
Stack/heap size:   16384 bytes; estimated max. usage=5266 cells (21064 bytes)
Total requirements:12037524 bytes

2 Warnings.
i have this script

pawn Код:
public Startup(playerid, vehicleid)
{
  new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
  new newcar = GetPlayerVehicleID(playerid);
    if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER || engineOn[vehicleid])
    {
        //I do nothing!
    }
    else if(IsPlayerInAnyVehicle(playerid) && !engineOn[vehicleid] && !vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && pveh != 510 && pveh != 462 && newcar != 59 && newcar != 60 && !IsAPlane(newcar) && !IsAHarvest(newcar) && !IsADrugHarvest(newcar) && !IsASweeper(newcar))
    {
        SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Attenzione! Digita /engine o premi %i per avviare il veicolo!",KEY_JUMP);
        TogglePlayerControllable(playerid, false);
        vehicleEntered[playerid][vehicleid] = true;
    }
    else if(IsPlayerInAnyVehicle(playerid) && !engineOn[vehicleid] && vehicleEntered[playerid][vehicleid] && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && pveh != 510 && pveh != 462 && newcar != 59 && newcar != 60 && !IsAPlane(newcar) && !IsAHarvest(newcar) && !IsADrugHarvest(newcar) && !IsASweeper(newcar))
    {
        SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Attenzione! Digita /engine o premi %i per avviare il veicolo!",KEY_JUMP);
        TogglePlayerControllable(playerid, false);
    }
}
Reply
#2

show up the lines
42035
42041
looks like sth wrong with a function or callback
Reply
#3

Quote:
Originally Posted by [cA
Unforseen ]
show up the lines
42035
42041
looks like sth wrong with a function or callback
exemple pls?
Reply
#4

you are getting me wrong
the pawno lines 42035 and 42041
what do they contain?
Reply
#5

Quote:
Originally Posted by [cA
Unforseen ]
you are getting me wrong
the pawno lines 42035 and 42041
what do they contain?
the line 42035 is

pawn Код:
SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Attenzione! Digita /engine o premi %i per avviare il veicolo!",KEY_JUMP);
and line 42041 is too:

pawn Код:
SendClientMessage(playerid, COLOR_LIGHT_BLUE, "Attenzione! Digita /engine o premi %i per avviare il veicolo!",KEY_JUMP);
Reply
#6

You have to use format function.
https://sampwiki.blast.hk/wiki/Format
Reply
#7

as u see SendClientMessage(playerid, color, "the message");
without function
so as Zimon95 said
thats why format is made
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)