[TuT] Rent Vozila

Započeo []Flynâ„¢, Decembar 31, 2011, 13:24:50 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

sch

*

Odličan tutorijal,svaka čast.!
Pawn Scripting Arbaiter
Willfried Schafer

napravio sam na state change ovo
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == 2)
{
if(RentVozila(newcar))
{
if (Rentano[playerid] != newcar)
{
SendClientMessage(playerid,ZELENA,"========== RENT VOZILO ==========");
SendClientMessage(playerid,LJUBICASTA,"Da rentas: /rentcar .");
SendClientMessage(playerid,LJUBICASTA,"Da izadjes: /exitcar .");
TogglePlayerControllable(playerid, 0);// Freeza igraca, da ne moze da pobegne
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
}
else
{
return 1;
}
  }
}

ali mi izbaci erore i varninge
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(384) : warning 201: redefinition of constant/macro (symbol "COLOR_GREY")
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(452) : warning 202: number of arguments does not match definition
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(452) : warning 202: number of arguments does not match definition
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(452) : warning 202: number of arguments does not match definition
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(452) : warning 202: number of arguments does not match definition
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(879) : warning 209: function "cmd_makeadmin" should return a value
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1077) : warning 209: function "cmd_nitro" should return a value
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1189) : error 004: function "RentVozila" is not implemented
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1191) : error 017: undefined symbol "newcar"
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1205) : error 029: invalid expression, assumed zero
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1205) : error 004: function "Streamer_OnPlayerEnterCP" is not implemented
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1210) : warning 225: unreachable code
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1210) : error 029: invalid expression, assumed zero
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1210) : error 004: function "Streamer_OnPlayerLeaveCP" is not implemented
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1215) : warning 225: unreachable code
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1215) : error 029: invalid expression, assumed zero
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1215) : error 004: function "Streamer_OnPlayerEnterRaceCP" is not implemented
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1220) : warning 225: unreachable code
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1220) : error 029: invalid expression, assumed zero
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1220) : error 004: function "Streamer_OnPlayerLeaveRaceCP" is not implemented
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1225) : warning 225: unreachable code
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1225) : error 029: invalid expression, assumed zero
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1225) : error 004: function "OnRconCommand" is not implemented
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1230) : warning 225: unreachable code
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1230) : error 029: invalid expression, assumed zero
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1230) : error 004: function "OnPlayerRequestSpawn" is not implemented
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1235) : warning 225: unreachable code
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1235) : error 029: invalid expression, assumed zero
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1235) : error 004: function "OnObjectMoved" is not implemented
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1240) : warning 225: unreachable code
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1240) : error 029: invalid expression, assumed zero
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1240) : error 004: function "OnPlayerObjectMoved" is not implemented
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1245) : warning 225: unreachable code
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1245) : error 029: invalid expression, assumed zero
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1245) : error 004: function "Streamer_OnPlayerPickUpPickup" is not implemented
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1250) : warning 225: unreachable code
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1250) : error 029: invalid expression, assumed zero
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1250) : error 004: function "OnVehicleMod" is not implemented
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1255) : warning 225: unreachable code
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1255) : error 029: invalid expression, assumed zero
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1255) : error 004: function "OnVehiclePaintjob" is not implemented
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1260) : warning 225: unreachable code
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1260) : error 029: invalid expression, assumed zero
C:\Users\Buljan\Desktop\USS\gamemodes\USSv1.pwn(1260) : error 004: function "OnVehicleRespray" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.


Svaka cast. :)!
Sve pohvale TuT je odlican

Dobar tut
Igram CoD4 & Dotu2
Moj xFire:cijuciks
Moj Steam:Doctor
Dota 2 movie : http://www.youtube.com/watch?v=9h4MPefc3Fo

Odlican tut,lako za shvatiti,sve objasnjeno  :)
Citat: Marley poslato Jun 16, 2012, 17:11:23 POSLE PODNE
Kurcina  :P

Citat: Dude poslato Jun 16, 2012, 17:14:21 POSLE PODNE
čobane šta je ovo?

Respect for David (Sabljak) A.k.A SABO(T)