25.05.2013, 17:42
Mattakill like : a red check point in front of a shop and after we go to the shop will be teleported to interior : id...
and i got a error...:
And i used:
But should i use OnPlayerConnect(playerid) on top od the script right?then why i take it to last?
and i got a error...:
Код:
D:\Drivers\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(28765) : error 021: symbol already defined: "RL_OnPlayerConnect" D:\Drivers\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(28766) : warning 202: number of arguments does not match definition D:\Drivers\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(28767) : error 001: expected token: ";", but found "return" D:\Drivers\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(28770) : error 021: symbol already defined: "Streamer_OnPlayerEnterCP" D:\Drivers\High Speed Drivers\gamemodes\HighSpeedDrivers.pwn(28778) : error 021: symbol already defined: "Streamer_OnPlayerLeaveCP" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Код:
OnPlayerConnect(playerid) { SetPlayerCheckpoint(playerid, -1772.1531,18.7958,182.4964) //the x y z of the bank exterior return 1; } public OnPlayerEnterCheckpoint(playerid) { SetPlayerPos(playerid,1494.325195,1304.942871,1093.289062); SetPlayerInterior(playerid,3); return 1; } //to make sure it works: public OnPlayerLeaveCheckpoint(playerid) { printf("Player %i left a checkpoint!",playerid); return 1; }