Canging Medics Spawn
#1

Well, I'm working on my roleplay gamemode and the one that I have the Medics/Firemen spawn in SF when my gamemode is in LS, so I tried to change that, I'll explain what goes wrong below.

This is the orignal code with the SF cords:
pawn Код:
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Fire/Ambulance spawn
        {
          SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, 0);
          SetPlayerPos(playerid, -2656.0393,635.0596,14.4531);
          PlayerInfo[playerid][pInt] = 0;
          return 1;
        }
But I want to add new cords from LS, so I /save'd them:
Quote:

AddPlayerClass(280,1173.2770,-1323.1829,15.3940,270.7559,0,0,0,0,0,0); // EMT

I'm not that good with cords and stuff, so I tried to put them in from what I know, this is the script with the new cords:

pawn Код:
f (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Fire/Ambulance spawn
        {
          SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, 0);
          SetPlayerPos(playerid, 280,1173.2770,-1323.1829,15.3940,270.7559);
          PlayerInfo[playerid][pInt] = 0;
          return 1;
        }
But... I get these errors:

Quote:

C:\Users\Owner\Desktop\New Folder\gamemodes\AllianceRP6[1].pwn(414 : warning 202: number of arguments does not match definition
C:\Users\Owner\Desktop\New Folder\gamemodes\AllianceRP6[1].pwn(414 : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

2 Warnings.

Thank you in advance if you can help me.
Reply
#2

Add this:

1173.2770,-1323.1829,15.3940
Reply
#3

Alright thanks, worked.
Reply
#4

u just did add the playerskinid to it
like
pawn Код:
AddPlayerClass(skinid,Float:x,Float:Y,Float:z,Floatangle:z,0,0,0,0,0,0)
u just need Float,Float:Y,Float:z cuz thats the position
Reply
#5

post question in thread of gamemode
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)