Canging Medics Spawn - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Canging Medics Spawn (
/showthread.php?tid=84537)
Canging Medics Spawn -
Devine - 01.07.2009
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.
Re: Canging Medics Spawn -
refshal - 01.07.2009
Add this:
1173.2770,-1323.1829,15.3940
Re: Canging Medics Spawn -
Devine - 01.07.2009
Alright thanks, worked.
Re: Canging Medics Spawn -
saiberfun - 01.07.2009
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
Re: Canging Medics Spawn -
kaisersouse - 01.07.2009
post question in thread of gamemode