SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 25/04/2019, 09:44 AM   #1
ZigGamerx
Huge Clucker
 
ZigGamerx's Avatar
 
Join Date: Jul 2018
Posts: 204
Reputation: 25
Default HTTP ERROR

* ERROR

Code:
H:\My Server\OldSchoolRoleplay-master\pawno\include\a_http.inc(22) : error 021: symbol already defined: "HTTP"
H:\My Server\OldSchoolRoleplay-master\pawno\include\vehicleFix.inc(55) : error 017: undefined symbol "IsValid*******Url"
H:\My Server\OldSchoolRoleplay-master\os-rp.pwn(44847) : error 017: undefined symbol "IsValid*******Url"
Pawn compiler 3.10.8              Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
* INCLUDE

Code:
 /*  SA-MP threaded HTTP/1.0 client for pawn
 *
 *  (c) Copyright 2010, SA-MP Team
 *
 */

// HTTP requests
#define HTTP_GET						1
#define HTTP_POST						2
#define HTTP_HEAD						3

// HTTP error response codes
// These codes compliment ordinary HTTP response codes returned in 'response_code'
// (10x) (20x OK) (30x Moved) (40x Unauthorised) (50x Server Error)  
#define HTTP_ERROR_BAD_HOST				1
#define HTTP_ERROR_NO_SOCKET			2
#define HTTP_ERROR_CANT_CONNECT			3
#define HTTP_ERROR_CANT_WRITE			4
#define HTTP_ERROR_CONTENT_TOO_BIG		5
#define HTTP_ERROR_MALFORMED_RESPONSE	6

native HTTP(index, type, url[], data[], callback[]);

// example HTTP callback: public MyHttpResponse(index, response_code, data[]) { ... }
1. My all includes upto date.
2. Its defined only 1 time in script
ZigGamerx is offline   Reply With Quote
Old 25/04/2019, 09:54 AM   #2
Mugala
High-roller
 
Mugala's Avatar
 
Join Date: Nov 2012
Location: Georgia, Tbilisi
Posts: 1,119
Reputation: 68
Default Re: HTTP ERROR

just dont use a_http, use a_samp.
__________________
Coding in 8 languages including Pawn, C#, C++ and SQL.
Available for hiring.

If you have a coding question or need an assistance in a code, just PM me.
If you want me to create something for you, here is a Discord Mugala#5651

Currently helping Community members in a coding.
Mugala is offline   Reply With Quote
Old 25/04/2019, 10:09 AM   #3
ZigGamerx
Huge Clucker
 
ZigGamerx's Avatar
 
Join Date: Jul 2018
Posts: 204
Reputation: 25
Default Re: HTTP ERROR

still same error, I comented that include
ZigGamerx is offline   Reply With Quote
Old 25/04/2019, 06:24 PM   #4
SiaReyes
Huge Clucker
 
SiaReyes's Avatar
 
Join Date: Mar 2019
Location: Coordinates X,Y,Z
Posts: 323
Reputation: 22
Default Re: HTTP ERROR

For yt steam issue

http://shortlink.in/t0E
SiaReyes is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTTP error qRazor Scripting Help 20 29/03/2019 07:57 PM
[Ajuda] Error HTTP G2TJF PortuguÍs/Portuguese 3 09/11/2017 05:00 PM
[Ajuda] Error HTTP social PortuguÍs/Portuguese 1 24/07/2017 04:58 AM
HTTP Error Deduction Scripting Help 1 26/12/2012 03:28 AM
HTTP() callback won't fire, + server crash using HTTP() KoczkaHUN Bug Reports 6 14/12/2011 10:35 AM


All times are GMT. The time now is 10:05 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.