MaFia_Eugen Posted March 20, 2013 Posted March 20, 2013 Sa rezolvat !!! Ma enervat ca nu ma ajuta nimeni si lam sters !! [pawn]#include <a_samp>new Scripter;[/pawn]
Guest Rock Posted March 20, 2013 Posted March 20, 2013 Updateaza serverul la 0.3xAdauga asta jos in script:strtok(const string[], &index) { new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result; }
MaFia_Eugen Posted March 20, 2013 Author Posted March 20, 2013 Sa rezolvat !!! [pawn]#include <a_samp>new Scripter;[/pawn]
Guest Rock Posted March 20, 2013 Posted March 20, 2013 Cauta in fisier(CTRL+F) BunVenit, BunVenit1 si BunVenit2 si unde le gasesti stergele.Si fa cum tiam zis, updateaza-ti serverul sa dispara si primele 3 erori!
MaFia_Eugen Posted March 20, 2013 Author Posted March 20, 2013 lam updatat dar asa imi arata ! :huh: [pawn]#include <a_samp>new Scripter;[/pawn]
Guest Rock Posted March 20, 2013 Posted March 20, 2013 lam updatat dar asa imi arata ! Sigur ai updatat cum trebuie?Sau vezi sa nu ai doua servere in pc si sa folosesti pawno de la celalalt, nu de la cel care l-ai updatat.Incearca sa deschizi gm-ul cu pawno din serverul care tocmai lai updatat.
MaFia_Eugen Posted March 20, 2013 Author Posted March 20, 2013 ok dar la celalalt sv numi mergea pawno dar copiez pawno [pawn]#include <a_samp>new Scripter;[/pawn]
Guest Rock Posted March 20, 2013 Posted March 20, 2013 Tu stii ce ai spus.Oricum, fa cum ti-am zis eu.
MaFia_Eugen Posted March 20, 2013 Author Posted March 20, 2013 Gata lam updatat corect dar mai are asta ! [pawn]C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(28634) : warning 217: loose indentationC:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(28639) : warning 217: loose indentationC:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(35584) : error 017: undefined symbol "NameTimer"Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase1 Error.[/pawn] [pawn]#include <a_samp>new Scripter;[/pawn]
Guest Rock Posted March 20, 2013 Posted March 20, 2013 new NameTimer;Nu stiu daca merge la ce ai tu, mai bine aratami unde este folosit NameTimer
MaFia_Eugen Posted March 20, 2013 Author Posted March 20, 2013 Cred ca astea sunt toate de acolo[pawn]public CustomPickups(){ new Float:oldposx, Float:oldposy, Float:oldposz; new string[128]; NameTimer(); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GetPlayerPos(i, oldposx, oldposy, oldposz); new tmpcar = GetPlayerVehicleID(i); if(oldposx!=0.0 && oldposy!=0.0 && oldposz!=0.0) {[/pawn] [pawn]#include <a_samp>new Scripter;[/pawn]
Guest Rock Posted March 21, 2013 Posted March 21, 2013 forward NameTimer(); public NameTimer() { for(new i = 0;i < MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { for(new q = 0;q < MAX_PLAYERS;q++) { if(IsPlayerConnected(q)) { new Float:p1x; new Float:p1y; new Float:p1z; new Float:p2x; new Float:p2y; new Float:p2z; if(IsPlayerConnected(i) && IsPlayerConnected(q)) { GetPlayerPos(i,p1x,p1y,p1z); GetPlayerPos(q,p2x,p2y,p2z); if(GetPointDistanceToPointExMorph(p1x,p1y,p1z,p2x,p2y,p2z) < pdistance) { if(PlayerInfo[q][pMaskuse] != 1) { ShowPlayerNameTagForPlayer(i,q,1); } } else { ShowPlayerNameTagForPlayer(i,q,0); } } } } } } }Jos in script.
MaFia_Eugen Posted March 21, 2013 Author Posted March 21, 2013 Prima data mai pus sa pun astea mai imi dadea 2 errori [pawn]strtok(const string[], &index){ new length = strlen(string); while ((index < length) && (string[index] <= ' ')) { index++; } new offset = index; new result[20]; while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1))) { result[index - offset] = string[index]; index++; } result[index - offset] = EOS; return result;}[/pawn]iar acum am pus astea la sfarsit si mai dat erori mai multe [pawn]forward NameTimer();public NameTimer(){ for(new i = 0;i < MAX_PLAYERS;i++) { if(IsPlayerConnected(i)) { for(new q = 0;q < MAX_PLAYERS;q++) { if(IsPlayerConnected(q)) { new Float:p1x; new Float:p1y; new Float:p1z; new Float:p2x; new Float:p2y; new Float:p2z; if(IsPlayerConnected(i) && IsPlayerConnected(q)) { GetPlayerPos(i,p1x,p1y,p1z); GetPlayerPos(q,p2x,p2y,p2z); if(GetPointDistanceToPointExMorph(p1x,p1y,p1z,p2x,p2y,p2z) < pdistance) { if(PlayerInfo[q][pMaskuse] != 1) { ShowPlayerNameTagForPlayer(i,q,1); } } else { ShowPlayerNameTagForPlayer(i,q,0); } } } } } }}[/pawn]Astea sunt erorile [pawn]C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(28634) : warning 217: loose indentationC:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(28639) : warning 217: loose indentationC:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(35584) : error 012: invalid function call, not a valid addressC:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(35584) : error 029: invalid expression, assumed zeroC:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(35584) : warning 215: expression has no effectC:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38344) : error 021: symbol already defined: "NameTimer"C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38345) : error 021: symbol already defined: "NameTimer"C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38347) : error 010: invalid function or declarationC:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38349) : error 010: invalid function or declarationC:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38351) : error 010: invalid function or declarationC:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38353) : error 010: invalid function or declarationC:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38361) : error 010: invalid function or declarationC:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38365) : error 010: invalid function or declarationC:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38367) : error 010: invalid function or declarationC:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38372) : error 010: invalid function or declarationC:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38382) : warning 203: symbol is never used: "NameTimer"C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38382) : warning 203: symbol is never used: "p1x"C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38382) : warning 203: symbol is never used: "p1y"C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38382) : warning 203: symbol is never used: "p1z"C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38382) : warning 203: symbol is never used: "p2x"C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38382) : warning 203: symbol is never used: "p2y"C:\Documents and Settings\Owner\Desktop\Servere samp\HighGameZone v2.5\gamemodes\hgz.pwn(38382) : warning 203: symbol is never used: "p2z"Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase12 Errors.[/pawn] [pawn]#include <a_samp>new Scripter;[/pawn]
MaFia_Eugen Posted March 25, 2013 Author Posted March 25, 2013 Am reusit sa fac ceva dar [pawn]C:\Documents and Settings\Owner\Desktop\hgz.pwn(28635) : warning 217: loose indentationC:\Documents and Settings\Owner\Desktop\hgz.pwn(28640) : warning 217: loose indentationC:\Documents and Settings\Owner\Desktop\hgz.pwn(38364) : warning 217: loose indentationC:\Documents and Settings\Owner\Desktop\hgz.pwn(38365) : warning 217: loose indentationC:\Documents and Settings\Owner\Desktop\hgz.pwn(38365) : error 017: undefined symbol "GetPointDistanceToPointExMorph"C:\Documents and Settings\Owner\Desktop\hgz.pwn(38367) : error 017: undefined symbol "pMaskuse"Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase2 Errors.[/pawn] [pawn]#include <a_samp>new Scripter;[/pawn]
[Funky]Anakin Posted March 26, 2013 Posted March 26, 2013 Am reusit sa fac ceva dar [pawn]C:\Documents and Settings\Owner\Desktop\hgz.pwn(28635) : warning 217: loose indentationC:\Documents and Settings\Owner\Desktop\hgz.pwn(28640) : warning 217: loose indentationC:\Documents and Settings\Owner\Desktop\hgz.pwn(38364) : warning 217: loose indentationC:\Documents and Settings\Owner\Desktop\hgz.pwn(38365) : warning 217: loose indentationC:\Documents and Settings\Owner\Desktop\hgz.pwn(38365) : error 017: undefined symbol "GetPointDistanceToPointExMorph"C:\Documents and Settings\Owner\Desktop\hgz.pwn(38367) : error 017: undefined symbol "pMaskuse"Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase2 Errors.[/pawn]C:\Documents and Settings\Owner\Desktop\hgz.pwn(28635) : warning 217: loose indentationC:\Documents and Settings\Owner\Desktop\hgz.pwn(28640) : warning 217: loose indentationC:\Documents and Settings\Owner\Desktop\hgz.pwn(38364) : warning 217: loose indentationC:\Documents and Settings\Owner\Desktop\hgz.pwn(38365) : warning 217: loose indentation[pawn]#pragma tabsize 0 // sub #include[/pawn]
Question
MaFia_Eugen
Sa rezolvat !!! Ma enervat ca nu ma ajuta nimeni si lam sters !!
[pawn]#include <a_samp>
new Scripter;[/pawn]
14 answers to this question
Recommended Posts