04.02.2013, 20:10
Hi there, thought I would give scripting another go. I'm trying to change it so I can have multiple classes, but as you can see, it's not going to well. Any help will be appreciated, thanks in advance.
These are the two errors I get when trying to compile it.
Код:
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(230,2301.2759,-1639.2301,14.6466,187.0401,24,500,31,1500,0,0);
AddStaticVehicle(402,2296.8960,-1639.5154,14.5801,212.5119,13,13);
AddPlayerClass(230,2127.3230,-1911.6631,13.5469,23.2084,24,500,31,1500,0,0);
AddStaticVehicle(402,2133.6509,-1910.0625,13.2939,0.4945,13,13);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2301.2759,-1639.2301,14.6466,187.0401);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerPos(playerid, 2127.3230,-1911.6631,13.5469,23.2084);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
These are the two errors I get when trying to compile it.
Код:
C:\Users\Lee\Desktop\SA-MP scripting\gamemodes\Jonesy.pwn(51) : warning 202: number of arguments does not match definition C:\Users\Lee\Desktop\SA-MP scripting\gamemodes\Jonesy.pwn(54) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.

