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

I tried retexturing some of my objects, and I got this error.

Код:
C:\Users\stefh\Desktop\Banks.pwn(260) : error 035: argument type mismatch (argument 4)
C:\Users\stefh\Desktop\Banks.pwn(262) : error 035: argument type mismatch (argument 4)
C:\Users\stefh\Desktop\Banks.pwn(264) : error 035: argument type mismatch (argument 4)
C:\Users\stefh\Desktop\Banks.pwn(266) : error 035: argument type mismatch (argument 4)
C:\Users\stefh\Desktop\Banks.pwn(268) : error 035: argument type mismatch (argument 4)
C:\Users\stefh\Desktop\Banks.pwn(270) : error 035: argument type mismatch (argument 4)
C:\Users\stefh\Desktop\Banks.pwn(272) : error 035: argument type mismatch (argument 4)
C:\Users\stefh\Desktop\Banks.pwn(274) : error 035: argument type mismatch (argument 4)
C:\Users\stefh\Desktop\Banks.pwn(276) : error 035: argument type mismatch (argument 4)
C:\Users\stefh\Desktop\Banks.pwn(278) : error 035: argument type mismatch (argument 4)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


10 Errors.
This is the code where the error is located at, someone help me, I can't find the problem.

Код:
public OnPlayerConnect(playerid)
{
new Object;
Object = CreatePlayerObject(playerid, 19543, 5124.82715, 260.52740, 9004.25000,   0.00000, 0.00000, 90.00000);
SetPlayerObjectMaterial(playerid, Object, 19370, "all_walls", "cj_lightwood", 0);
Object = CreatePlayerObject(playerid, 19543, 5124.76221, 275.50513, 9004.25000,   0.00000, 0.00000, 90.00000);
SetPlayerObjectMaterial(playerid, Object, 19370, "all_walls", "cj_lightwood", 0);
Object = CreatePlayerObject(playerid, 19543, 5124.76221, 275.50510, 9006.63184,   0.00000, 0.00000, 90.00000);
SetPlayerObjectMaterial(playerid, Object, 19370, "all_walls", "cj_lightwood", 0);
Object = CreatePlayerObject(playerid, 19543, 5124.76221, 275.50513, 9004.25000,   0.00000, 0.00000, 90.00000);
SetPlayerObjectMaterial(playerid, Object, 19370, "all_walls", "cj_lightwood", 0);
Object = CreatePlayerObject(playerid, 19543, 5124.85449, 260.93420, 9006.63184,   0.00000, 0.00000, 90.00000);
SetPlayerObjectMaterial(playerid, Object, 19370, "all_walls", "cj_lightwood", 0);
Object = CreatePlayerObject(playerid, 19543, 5114.02832, 253.42180, 9010.38965,   270.00000, 0.00000, 0.00000);
SetPlayerObjectMaterial(playerid, Object, 19428, "all_walls", "cj_white_wall2", 0);
Object = CreatePlayerObject(playerid, 19543, 5130.90137, 253.44147, 9010.38965,   270.00000, 0.00000, 0.00000);
SetPlayerObjectMaterial(playerid, Object, 19428, "all_walls", "cj_white_wall2", 0);
Object = CreatePlayerObject(playerid, 19543, 5124.55762, 222.16180, 9010.38965,   0.00000, 270.00000, 0.00000);
SetPlayerObjectMaterial(playerid, Object, 19428, "all_walls", "cj_white_wall2", 0);
Object = CreatePlayerObject(playerid, 19543, 5120.55762, 222.16180, 9010.38965,   0.00000, 90.00000, 0.00000);
SetPlayerObjectMaterial(playerid, Object, 19428, "all_walls", "cj_white_wall2", 0);
Object = CreatePlayerObject(playerid, 19543, 5122.82568, 240.26620, 9010.38965,   90.00000, 0.00000, 180.00000);
SetPlayerObjectMaterial(playerid, Object, 19428, "all_walls", "cj_white_wall2", 0);
return 1;
}
I'm desperate for assistance.
Reply
#2

pawn Код:
public OnPlayerConnect(playerid)
{
    new Object;
    Object = CreatePlayerObject(playerid, 19543, 5124.82715, 260.52740, 9004.25000,   0.00000, 0.00000, 90.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19370, "all_walls", "cj_lightwood", 0);
    Object = CreatePlayerObject(playerid, 19543, 5124.76221, 275.50513, 9004.25000,   0.00000, 0.00000, 90.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19370, "all_walls", "cj_lightwood", 0);
    Object = CreatePlayerObject(playerid, 19543, 5124.76221, 275.50510, 9006.63184,   0.00000, 0.00000, 90.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19370, "all_walls", "cj_lightwood", 0);
    Object = CreatePlayerObject(playerid, 19543, 5124.76221, 275.50513, 9004.25000,   0.00000, 0.00000, 90.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19370, "all_walls", "cj_lightwood", 0);
    Object = CreatePlayerObject(playerid, 19543, 5124.85449, 260.93420, 9006.63184,   0.00000, 0.00000, 90.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19370, "all_walls", "cj_lightwood", 0);
    Object = CreatePlayerObject(playerid, 19543, 5114.02832, 253.42180, 9010.38965,   270.00000, 0.00000, 0.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19428, "all_walls", "cj_white_wall2", 0);
    Object = CreatePlayerObject(playerid, 19543, 5130.90137, 253.44147, 9010.38965,   270.00000, 0.00000, 0.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19428, "all_walls", "cj_white_wall2", 0);
    Object = CreatePlayerObject(playerid, 19543, 5124.55762, 222.16180, 9010.38965,   0.00000, 270.00000, 0.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19428, "all_walls", "cj_white_wall2", 0);
    Object = CreatePlayerObject(playerid, 19543, 5120.55762, 222.16180, 9010.38965,   0.00000, 90.00000, 0.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19428, "all_walls", "cj_white_wall2", 0);
    Object = CreatePlayerObject(playerid, 19543, 5122.82568, 240.26620, 9010.38965,   90.00000, 0.00000, 180.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19428, "all_walls", "cj_white_wall2", 0);
    return 1;
}
Reply
#3

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
pawn Код:
public OnPlayerConnect(playerid)
{
    new Object;
    Object = CreatePlayerObject(playerid, 19543, 5124.82715, 260.52740, 9004.25000,   0.00000, 0.00000, 90.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19370, "all_walls", "cj_lightwood", 0);
    Object = CreatePlayerObject(playerid, 19543, 5124.76221, 275.50513, 9004.25000,   0.00000, 0.00000, 90.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19370, "all_walls", "cj_lightwood", 0);
    Object = CreatePlayerObject(playerid, 19543, 5124.76221, 275.50510, 9006.63184,   0.00000, 0.00000, 90.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19370, "all_walls", "cj_lightwood", 0);
    Object = CreatePlayerObject(playerid, 19543, 5124.76221, 275.50513, 9004.25000,   0.00000, 0.00000, 90.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19370, "all_walls", "cj_lightwood", 0);
    Object = CreatePlayerObject(playerid, 19543, 5124.85449, 260.93420, 9006.63184,   0.00000, 0.00000, 90.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19370, "all_walls", "cj_lightwood", 0);
    Object = CreatePlayerObject(playerid, 19543, 5114.02832, 253.42180, 9010.38965,   270.00000, 0.00000, 0.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19428, "all_walls", "cj_white_wall2", 0);
    Object = CreatePlayerObject(playerid, 19543, 5130.90137, 253.44147, 9010.38965,   270.00000, 0.00000, 0.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19428, "all_walls", "cj_white_wall2", 0);
    Object = CreatePlayerObject(playerid, 19543, 5124.55762, 222.16180, 9010.38965,   0.00000, 270.00000, 0.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19428, "all_walls", "cj_white_wall2", 0);
    Object = CreatePlayerObject(playerid, 19543, 5120.55762, 222.16180, 9010.38965,   0.00000, 90.00000, 0.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19428, "all_walls", "cj_white_wall2", 0);
    Object = CreatePlayerObject(playerid, 19543, 5122.82568, 240.26620, 9010.38965,   90.00000, 0.00000, 180.00000);
    SetPlayerObjectMaterial(playerid, Object, 0, 19428, "all_walls", "cj_white_wall2", 0);
    return 1;
}
Thankyou so much! This fixed my issue.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)