25.08.2009, 18:23
Why the fuck do I get these warnings?
pawn Код:
if(!strcmp(cmdtext, "/lock"))
{
if(IsPlayerConnected(playerid))
{
if(TmpCarKeys[playerid] == -1 && TmpCarKeys2[playerid] == -1)
{
SendClientMessage(playerid, RED, "Vous n'avez aucun vйhicule spawned.");
return 1;
}
new Float:x, Float:y, Floart:z;
new cartolock;
GetVehiclePos(TmpCarKeys[playerid], x, y, z); // warning 213: tag mismatch
if(TmpCarKeys[playerid] != -1 && TmpCarKeys2[playerid] == -1) cartolock = TmpCarKeys[playerid];
if(TmpCarKeys2[playerid] != -1)
{
new Float:x2, Float:y2, Floart:z2;
GetVehiclePos(TmpCarKeys2[playerid], x2, y2, z2); // warning 213: tag mismatch
if(PlayerToPoint(10, playerid, x, y, z) && !PlayerToPoint(10, playerid, x2, y2, z2)) cartolock = TmpCarKeys[playerid]; // warning 213: tag mismatch x2
else cartolock = TmpCarKeys2[playerid];
}
CarInfo[cartolock][cLock] = 1;
format(string, sizeof(string), "Vous avez verrouillй les portes de votre %s", GetVehicleName(cartolock));
SendClientMessage(playerid, YELLOW, string);
}
return 1;
}