01.12.2014, 19:22
Hi Guys Im new to scripting please help me
Errors-
C:\Documents and Settings\Owner\Desktop\SAMP\gamemodes\GameMode.pwn (11 -- 12) : error 017: undefined symbol "Spawn_X"
C:\Documents and Settings\Owner\Desktop\SAMP\gamemodes\GameMode.pwn (11 -- 12) : error 001: expected token: ")", but found ";"
C:\Documents and Settings\Owner\Desktop\SAMP\gamemodes\GameMode.pwn (15) : error 010: invalid function or declaration
whole code -
#include <a_samp>
#define GameMode "Tutorial"
public OnGameModeInit()
{
SetGameModeText("GameMode");
return 1;
}
public OnPlayerRequestClass(playerid,classid)
(
SetSpawnInfo(playerid, 0, 121, Spawn_X, Spawn_Y, Spawn_z, 0, -1,-1,-1,-1,-1,-1);
GivePlayerMoney(Playerid, 100)'
SpawnPlayer(Playerid);
return 1;
)
Errors-
C:\Documents and Settings\Owner\Desktop\SAMP\gamemodes\GameMode.pwn (11 -- 12) : error 017: undefined symbol "Spawn_X"
C:\Documents and Settings\Owner\Desktop\SAMP\gamemodes\GameMode.pwn (11 -- 12) : error 001: expected token: ")", but found ";"
C:\Documents and Settings\Owner\Desktop\SAMP\gamemodes\GameMode.pwn (15) : error 010: invalid function or declaration
whole code -
#include <a_samp>
#define GameMode "Tutorial"
public OnGameModeInit()
{
SetGameModeText("GameMode");
return 1;
}
public OnPlayerRequestClass(playerid,classid)
(
SetSpawnInfo(playerid, 0, 121, Spawn_X, Spawn_Y, Spawn_z, 0, -1,-1,-1,-1,-1,-1);
GivePlayerMoney(Playerid, 100)'
SpawnPlayer(Playerid);
return 1;
)