public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, 00,2136.7041,33.7916,26.4215,265.5875,0,0,0,0,0,0);
GivePlayerMoney(playerid, 1000);
SendClientMessage(playerid, COLOR_YELLOW, "You have been given $1000 to start off with. Spend it wisely!");
return 1;
}
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(329) : warning 202: number of arguments does not match definition
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(329) : warning 202: number of arguments does not match definition
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(329) : warning 202: number of arguments does not match definition
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(329) : warning 202: number of arguments does not match definition
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(329) : warning 202: number of arguments does not match definition
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(329) : warning 202: number of arguments does not match definition
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(329) : warning 202: number of arguments does not match definition
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(329) : warning 202: number of arguments does not match definition
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(931) : warning 215: expression has no effect
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(1153) : warning 215: expression has no effect
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(1155) : warning 215: expression has no effect
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(1195) : warning 217: loose indentation
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(1200) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
13 Warnings.
SetPlayerPos(playerid, Float:X, Float:Y, Float:Z);
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(332) : error 029: invalid expression, assumed zero
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(332) : warning 221: label name "Float" shadows tag name
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(332) : error 029: invalid expression, assumed zero
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(332) : warning 221: label name "Float" shadows tag name
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(332) : error 029: invalid expression, assumed zero
C:\Users\Max Kleinman\Desktop\First RP gamemode\gamemodes\rp.pwn(332) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
I think you're trying to use something like SetSpawnInfo, and not SetPlayerPos. See,
https://sampwiki.blast.hk/wiki/SetSpawnInfo |
SetPlayerPos(playerid, 00,2136.7041,33.7916,26.4215,265.5875,0,0,0,0,0,0);
SetPlayerPos(playerid, Float:x, Float:y, Float:z)
SetSpawnInfo(playerid, team, skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)
playerid = playerid team = 0 skin = 0 Float:x = 2136.7041 Float:y = 33.7916 Float:z = 26.4215 Float:Angle = 265.5875 weapon1 = 0 weapon1_ammo = 0 weapon2 = 0 weapon2_ammo = 0 weapon3 = 0 weapon3_ammo = 0
SetSpawnInfo(playerid, 0, 0, 2136.7041, 33.7916, 26.4215, 265.5875, 0, 0, 0, 0, 0, 0);
public OnPlayerConnect(playerid)
{
SetSpawnInfo(playerid, 0, 0, 2136.7041, 33.7916, 26.4215, 265.5875, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnPlayerSpawn(playerid)
{
GivePlayerMoney(playerid, 1000);
SendClientMessage(playerid, COLOR_YELLOW, "You have been given $1000 to start off with. Spend it wisely!");
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, 2136.7041,33.7916,26.4215);
GivePlayerMoney(playerid, 1000);
SendClientMessage(playerid, COLOR_YELLOW, "You have been given $1000 to start off with. Spend it wisely!");
return 1;
}