public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2323.5830,1283.2872,97.5052);
SetPlayerFacingAngle(playerid,90);
SetPlayerCameraPos(playerid, 2313.5503,1283.2721,98.1951);
SetPlayerCameraLookAt(playerid, 2313.5503,1283.2721,98.1951);
PlayAudioStreamForPlayer(playerid, "http://racerevolution.cu.cc/music/Skrillex%20-%20First%20of%20the%20Year%20GOAT%20Edition.mp3");
return 1;
}
The following errors occurred with your submission: This forum requires that you wait 120 seconds between posts. Please try again in 51 seconds. |
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2323.5830,1283.2872,97.5052);
SetPlayerFacingAngle(playerid,90);
SetPlayerCameraPos(playerid, 2313.5503,1283.2721,98.1951);
SetPlayerCameraLookAt(playerid, 2313.5503,1283.2721,98.1951);
return 1;
}
public OnPlayerConnect(playerid)
{
PlayAudioStreamForPlayer(playerid, "http://racerevolution.cu.cc/music/Skrillex%20-%20First%20of%20the%20Year%20GOAT%20Edition.mp3");
return 1;
}
CMD:me(playerid,params[])
{
#pragma unused params
{
if(!strlen(params)) return
SendClientMessage(playerid, LIGHTBLUE2, "Usage: /me [Text] ")
new string[128], name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s {FFFFFF}%s", name, params[0]);
return SendClientMessageToAll(LIGHTBLUE,string);
}
}
C:\Users\Kelvin\Desktop\Scripting\gamemodes\racerevolution.pwn(5618) : error 001: expected token: ";", but found "new" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
CMD:me(playerid, params[])
{
new sendername[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
sendername[strfind(sendername,"_")] = ' ';
if(isnull(params)) return SendClientMessage(playerid,LIGHTBLUE2,"USAGE: /me [action]");
format(string, sizeof(string), "*%s %s", sendername, params);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
CMD:me(playerid,params[])
{
#pragma unused params
{
if(!strlen(params)) return
SendClientMessage(playerid, LIGHTBLUE2, "Usage: /me [Text] ");
new string[128], name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s {FFFFFF}%s", name, params[0]);
return SendClientMessageToAll(LIGHTBLUE,string);
}
}
SendClientMessage(playerid, LIGHTBLUE2, "Usage: /me [Text] ");