//deserteagle
if(strcmp(cmdtext, "/deserteagle", true) == 0)
{
ResetPlayerWeapons();
GivePlayerWeapon(playerid, 24, 1000);
SetPlayerPos(-2672.5190,1410.3302,907.5703,272.2658,0,0,0,0,0,0);
SetPlayerInterior(playerid, 3);
return 1;
}
D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(1034) : warning 202: number of arguments does not match definition D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(1036) : warning 213: tag mismatch D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(1036) : warning 202: number of arguments does not match definition D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(1036) : warning 202: number of arguments does not match definition D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(1036) : warning 202: number of arguments does not match definition D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(1036) : warning 202: number of arguments does not match definition D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(1036) : warning 202: number of arguments does not match definition D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(1036) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 8 Warnings.
AddPlayerClass(287,-2672.5190,1410.3302,907.5703,272.2658,0,0,0,0,0,0); // loc
,272.2658,0,0,0,0,0,0
//deserteagle if(strcmp(cmdtext, "/deserteagle", true) == 0) { SetPlayerInterior(playerid, 3); SetPlayerPos(-2672.5190,1410.3302,907.5703); ResetPlayerWeapons(); GivePlayerWeapon(playerid, 24, 1000); return 1; }
Originally Posted by GaGlets®
Set Player interior before teleporting and..
SetPlayer pos need only X,Y,Z !! You have X,Y,Z,Angle,wep1,ammo1,wep2,ammo2,wep3,ammo3 - It means that you need to remove Код:
,272.2658,0,0,0,0,0,0 Код:
//deserteagle if(strcmp(cmdtext, "/deserteagle", true) == 0) { SetPlayerInterior(playerid, 3); SetPlayerPos(-2672.5190,1410.3302,907.5703); ResetPlayerWeapons(); GivePlayerWeapon(playerid, 24, 1000); return 1; } |
D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(1035) : warning 213: tag mismatch D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(1035) : warning 202: number of arguments does not match definition D:\DOCUME~1\ANDY~1\MYDOC~1\_UF_SF~1\GAMEMO~1\_UF_SF~1.PWN(1036) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings.
if(strcmp(cmdtext, "/deserteagle", true) == 0) { ResetPlayerWeapons(playerid); // added playerid GivePlayerWeapon(playerid, 24, 1000); SetPlayerPos(playerid,-2672.5190,1410.3302,907.5703); // format should be SetPlayerPos(playerid,x,y,z); SetPlayerInterior(playerid, 3); return 1; }
Originally Posted by [AC
Etch ]
that's the right code Код:
if(strcmp(cmdtext, "/deserteagle", true) == 0) { ResetPlayerWeapons(playerid); // added playerid GivePlayerWeapon(playerid, 24, 1000); SetPlayerPos(playerid,-2672.5190,1410.3302,907.5703); // format should be SetPlayerPos(playerid,x,y,z); SetPlayerInterior(playerid, 3); return 1; } |
Originally Posted by [AC
Etch ]
that's the right code Код:
if(strcmp(cmdtext, "/deserteagle", true) == 0) { ResetPlayerWeapons(playerid); // added playerid GivePlayerWeapon(playerid, 24, 1000); SetPlayerPos(playerid,-2672.5190,1410.3302,907.5703); // format should be SetPlayerPos(playerid,x,y,z); SetPlayerInterior(playerid, 3); return 1; } |
Originally Posted by DarkPhoenix
Quote:
|
Originally Posted by GaGlets®
BTW - Rset and give weapons AFTER TELEPORT !! LOL
|