HELP -
DarkScimitar - 01.12.2014
I am watching some tutorials but I copy al what the male says it gives Errors
C:\Documents and Settings\Owner\Desktop\SAMP\gamemodes\GameMode.pwn (13 -- 14) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Owner\Desktop\SAMP\gamemodes\GameMode.pwn (13 -- 14) : error 001: expected token: ")", but found ";"
C:\Documents and Settings\Owner\Desktop\SAMP\gamemodes\GameMode.pwn (17) : error 010: invalid function or declaration
#include <a_samp>
#define GameMode "Tutorial"
#define Spawn_X 200
#define Spawn_Y 200
#define Spawn_z 200
public OnGameModeInit ()
{
SetGameModeText("GameMode");
return 1;
}
public OnPlayerRequestClass(playerid,classid)
(
SetSpawnInfo(playerid, 0, Spawn_X, Spawn_Y, Spawn_z, 0, -1, -1, -1,-1,-1,-1);
GivePlayerMoney(playerid, 1000);
SpawnPlayer(playerid);
return 1;
)
Re: HELP -
Runn3R - 01.12.2014
Can you stop posting new topics? You're spamming the forums.
I've already told you you can't use "(" nor ")" as brackets.
Re: HELP -
AnthonyTimmers - 01.12.2014
3rd topic where you use ( ) instead of { }. As I said earlier, check out guides or risk getting a possible warning from forum moderators.
https://sampwiki.blast.hk/wiki/Scripting_Basics
https://sampwiki.blast.hk/wiki/Control_Structures
Re: HELP -
Rube - 01.12.2014
Stop spamming topics dude for god sake !
Re: HELP -
DarkScimitar - 02.12.2014
I need new help I get this error - error 076: syntax error in the expression, or invalid function call how to fix?
Re: HELP -
HY - 02.12.2014
pawn Код:
#include <a_samp>
#define GameMode "Tutorial"
#define Spawn_X 200
#define Spawn_Y 200
#define Spawn_z 200
public OnGameModeInit()
{
SetGameModeText("GameMode");
return 1;
}
public OnPlayerRequestClass(playerid,classid)
{
SetSpawnInfo(playerid, 0, Spawn_X, Spawn_Y, Spawn_z, 0, -1, -1, -1,-1,-1,-1);
GivePlayerMoney(playerid, 1000);
SpawnPlayer(playerid);
return 1;
}