Need help for fixing errors
#1

I'm getting two of those errors:
Код:
error 035: argument type mismatch (argument 2)
Also i get 3 of those warnings:
Код:
warning 213: tag mismatch
In those lines:
Код:
GetPlayerPos(playerid, X, Y, Z); first error
GetXYInFrontOfPlayer(playerid, X, Y, 2.0); second error
HouseInfo[hID][FPosX][i] = X; HouseInfo[hID][FPosY][i] = Y; HouseInfo[hID][FPosZ][i] = Z; 3 warnings
HouseInfo[hID][FRotX][i] = 0; HouseInfo[hID][FRotY][i] = 0; HouseInfo[hID][FRotZ][i] = 0;
HouseInfo[hID][FurnitureObj][i] = CreateDynamicObject(FurnitureInfo[HouseInfo[hID][FModel][i]][0], HouseInfo[hID][FPosX][i], HouseInfo[hID][FPosY][i], HouseInfo[hID][FPosZ][i], HouseInfo[hID][FRotX][i], HouseInfo[hID][FRotY][i], HouseInfo[hID][FRotZ][i], HouseInfo[hID][VirtualWorld], HouseInfo[hID][Interior], -1, 50.0);
SaveFurniturePosition(hID, i);
Please help me and sorry for my bad english.

P.S i've copied this fs to my gm https://sampforum.blast.hk/showthread.php?tid=405201
Reply
#2

here place "GetXYInFrontOfPlayer" with this and tell me

PHP код:
stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:yFloat:distance)
{
    new 
Float:a;
    
GetPlayerPos(playeridxya);
    
GetPlayerFacingAngle(playerida);
    if (
GetPlayerVehicleID(playerid))
    {
      
GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
    }
    
+= (distance floatsin(-adegrees));
    
+= (distance floatcos(-adegrees));

Reply
#3

changed, same errors :/
Reply
#4

Quote:
Originally Posted by Watson Destor
Посмотреть сообщение
GetXYInFrontOfPlayer(playerid, X, Y, 2.0); second error
Show us the second error.
Reply
#5

Second error is same as first
Reply
#6

deleted
Reply
#7

PS: please recheck the lines (I apologies), because I can't fine any issue.
Reply
#8

I've forget to note some warnings, i've wrote them, maybe it will help.
Reply
#9

did u define x as a float? (new Float:X, Float:Y...
Reply
#10

It's defined here:
Код:
enum Iejimoinfo
{
	IDas,
	Float:X,
	Float:Y,
	Float:Z,
	Interior,
	Float:X2,
	Float:Y2,
	Float:Z2
};
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)