Pawno Help!
#1

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;
)
Reply
#2

You can't use "(" nor ")" as a bracket!

You use { }.

Please read some tutorials before you start scripting you can find alot of them on the forums.

Issue: ()
Fix: {}
Код:
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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)