30.07.2010, 13:30
I`m trying ...
I don`t think it`s right but it should look something like that
Errors :
D:\SAMP Server R7\gamemodes\arth.pwn(27460) : error 035: argument type mismatch (argument 3)
Can someone correct me? Hiddos? Help ?
It would be really great if i could do this and i would definetly release it on sa-mp.com !
So... RazVan is an owner of a car, and when i would type /replace MihaiTZa55, RazVan`s car would be replaced as MihaiTZa55`s car (mine) but i got that error... Help ?
Should I user format( with the %s or somthing ? or something ?
pawn Код:
if(strcmp(cmd, "/replace", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "/replace [PlayerName]");
return 1;
}
if (PlayerInfo[playerid][pAdmin] >= 1)
{
if(playerid != INVALID_PLAYER_ID)
{
SetPVarInt(playerid,"RazVan",tmp); // ERROR LINE (27460)
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Player not online...");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "U are not an admin.");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "U didn`t connect yet.");
}
}
Errors :
D:\SAMP Server R7\gamemodes\arth.pwn(27460) : error 035: argument type mismatch (argument 3)
Can someone correct me? Hiddos? Help ?
It would be really great if i could do this and i would definetly release it on sa-mp.com !
So... RazVan is an owner of a car, and when i would type /replace MihaiTZa55, RazVan`s car would be replaced as MihaiTZa55`s car (mine) but i got that error... Help ?
Should I user format( with the %s or somthing ? or something ?