14.04.2019, 19:00
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/veh", true) == 0)
{
new String[200];
new tmp[256];
new idx[256];
new Float:x, Float:y, Float:z;
(267) tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
return SendClientMessage(playerid, rosu, "You didn't give a vehicle name");
}
new vehicle = GetVehicleModelIDFromName(tmp);
if(vehicle < 400 || vehicle > 611) return SendClientMessage(playerid, rosu, "That vehicle name was not found");
(267) : error 035: argument type mismatch (argument 2)
{
if(strcmp(cmdtext, "/veh", true) == 0)
{
new String[200];
new tmp[256];
new idx[256];
new Float:x, Float:y, Float:z;
(267) tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
return SendClientMessage(playerid, rosu, "You didn't give a vehicle name");
}
new vehicle = GetVehicleModelIDFromName(tmp);
if(vehicle < 400 || vehicle > 611) return SendClientMessage(playerid, rosu, "That vehicle name was not found");
(267) : error 035: argument type mismatch (argument 2)