argument type mismatch (argument 1)
#1

Код:
CMD:customplate(playerid, params[])
{
	new plate[128];
    if(!IsPlayerConnected(playerid) || PlayerInfo[playerid][pPlate] == 1) return SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use command.");
    if(!IsPlayerInRangeOfPoint(playerid, 4, 2117.5835,-1153.0809,24.2201)) return SendClientMessage(playerid, COLOR_GREY, "You are not at the tuning shop.");
    if(sscanf(params, "s[128]", plate)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /customplate [number]");
    format(plate, sizeof(plate), "%s", plate);
    SetVehicleNumberPlate(PlayerVehicleInfo[playerid] , plate); <<-- This is the line
    return 1;
}
Anyone please help
C:\Users\indra\Desktop\12-03-2014.pwn(34964) : error 035: argument type mismatch (argument 1)
Reply
#2

PlayerVehicleInfo[playerid] must be integer. And formatting plate with plate is pointless.
Reply
#3

try this

PHP код:
SetVehicleNumberPlate(PlayerVehicleInfo[playerid][pPlate] , plate); // i don't know if it works, but give it a shot ;) 
Reply
#4

Quote:
Originally Posted by Ramoboss
Посмотреть сообщение
try this

PHP код:
SetVehicleNumberPlate(PlayerVehicleInfo[playerid][pPlate] , plate); // i don't know if it works, but give it a shot ;) 
I got this eror message

C:\Users\indra\Desktop\12-03-2014.pwn(34964) : error 032: array index out of bounds (variable "PlayerVehicleInfo")
Reply
#5

Ignore his post and show us how you declared PlayerVehicleInfo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)