can someone tell me how to fix this ?
#1

The script:

Код:
#define FILTERSCRIPT
#include <a_samp>

new test[MAX_PLAYERS];
new test0[MAX_PLAYERS];
new test1[MAX_PLAYERS];
new test2[MAX_PLAYERS];
new test3[MAX_PLAYERS];


public OnPlayerConnect(playerid)
{
        test[playerid]  = CreatePlayerObject(19379, -243.85907, 1214.69922, 25.45706,   0.00000, 90.00000, 0.00000);
	SetPlayerObjectMaterial(playerid, test[playerid], 0, 16067, "des_stownmots1", "shingles2", 0);
	
	test0[playerid] = CreatePlayerObject(19379, -235.81860, 1214.71399, 25.45706,   0.00000, 90.00000, 0.00000);
	SetPlayerObjectMaterial(playerid, test0[playerid], 0, 16067, "des_stownmots1", "shingles2", 0);
	
	test1[playerid] = CreatePlayerObject(19379, -235.92130, 1218.07275, 25.45706,   0.00000, 90.00000, 0.00000);
	SetPlayerObjectMaterial(playerid, test1[playerid], 0, 16067, "des_stownmots1", "shingles2", 0);
	
	test2[playerid] = CreatePlayerObject(19379, -246.33076, 1218.07532, 25.45706,   0.00000, 90.00000, 0.00000);
	SetPlayerObjectMaterial(playerid, test2[playerid], 0, 16067, "des_stownmots1", "shingles2", 0);
	
	test3[playerid] = CreatePlayerObject(19379, -254.34807, 1218.04810, 25.45706,   0.00000, 90.00000, 0.00000);
	SetPlayerObjectMaterial(playerid, test3[playerid], 0, 16067, "des_stownmots1", "shingles2", 0);
	
	
	return 1;
}
The errors:

Код:
C:\Users\Atti\Desktop\test.pwn(13) : warning 213: tag mismatch
C:\Users\Atti\Desktop\test.pwn(13) : warning 202: number of arguments does not match definition
C:\Users\Atti\Desktop\test.pwn(16) : warning 213: tag mismatch
C:\Users\Atti\Desktop\test.pwn(16) : warning 202: number of arguments does not match definition
C:\Users\Atti\Desktop\test.pwn(19) : warning 213: tag mismatch
C:\Users\Atti\Desktop\test.pwn(19) : warning 202: number of arguments does not match definition
C:\Users\Atti\Desktop\test.pwn(22) : warning 213: tag mismatch
C:\Users\Atti\Desktop\test.pwn(22) : warning 202: number of arguments does not match definition
C:\Users\Atti\Desktop\test.pwn(25) : warning 213: tag mismatch
C:\Users\Atti\Desktop\test.pwn(25) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


10 Warnings.
Thanks!
Reply
#2

If you get a warning telling you that the number of arguments doesn't match than you should look up the function and recheck your arguments
Reply
#3

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
If you get a warning telling you that the number of arguments doesn't match than you should look up the function and recheck your arguments
I checked that but everything should be fine...
Reply
#4

Here is one of mine, You should just copy and edit it.
Код:
new adminhof_logo = CreateDynamicObject(19480, 1678.0703, 1461.0832, 1148.6065, 0.0000, 0.0000, 0.0331);
SetDynamicObjectMaterialText(adminhof_logo, 0, "Admin Hall of Fame", 90, "Times New Roman", 0, 1, -8092540, 0, 1);
Reply
#5

Quote:
Originally Posted by DanRellex
Посмотреть сообщение
Here is one of mine, You should just copy and edit it.
Код:
new adminhof_logo = CreateDynamicObject(19480, 1678.0703, 1461.0832, 1148.6065, 0.0000, 0.0000, 0.0331);
SetDynamicObjectMaterialText(adminhof_logo, 0, "Admin Hall of Fame", 90, "Times New Roman", 0, 1, -8092540, 0, 1);
I found the problem actually .. I forgot to put
Код:
playerid
in front of the object ID, thanks for the help !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)