error 035: argument type mismatch (argument 1)
#1

Quote:

dcmd_crimes(playerid, params[])
{
#pragma unused params

if (PlayerInfo[playerid][pSpawn] == 1){

if (PlayerInfo[playerid][pTeam] == TEAM_CIVILIAN){

new string[256],Wanted[128],idx,giveplayerid,tmp[256];


tmp = strtok(params, idx);
if(!strlen(tmp))
{
//SendClientMessage(playerid, COLOR_ERROR, "USAGE: /crimes (Name/Id).");
//return 1;
giveplayerid = playerid;
}else{

if(!isNumeric(tmp))
{
giveplayerid = ReturnUser(playerid, tmp);
if(giveplayerid == INVALID_PLAYER_ID)
{
return 1;
}
}

Any Help to fix this argument type mismatch!!!

Quote:

giveplayerid = ReturnUser(playerid, tmp);

Here's the Line that should be the problem
Reply
#2

Write it just like this:

PHP код:
giveplayerid ReturnUser(tmp); 
Reply
#3

You mean i need to replace?
Reply
#4

Yes
Reply
#5

Thank you so much Kaliber
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)